/* Login Modern Styles - Ph??ng B?c Company Design - Larger Form */
:root {
    /* Primary Color Palette - Clean & Professional */
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #1d4ed8;
    --secondary-color: #0ea5e9;
    --accent-color: #06b6d4;
    
    /* Neutral Colors - Softer palette */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Company Colors */
    --company-blue: #1e40af;
    --company-gold: #fbbf24;
    --company-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    
    /* Spacing & Borders */
    --border-radius-sm: 6px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 20px;
    
    /* Shadows - Softer shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Clean background pattern */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(30, 64, 175, 0.04) 0%, transparent 50%);
    z-index: 0;
}

/* Subtle floating elements */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(30, 64, 175, 0.04));
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 65%;
    right: 12%;
    animation-delay: 3s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 35%;
    right: 25%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-20px) translateX(15px); 
        opacity: 0.8;
    }
}

/* Main Container */
.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Left Side - Branding */
.login-brand {
    flex: 1.1;
    background: var(--company-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: brandShimmer 6s ease-in-out infinite;
}

@keyframes brandShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.brand-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 400px;
}

.company-logo-large {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-xl);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
    transition: var(--transition-slow);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.company-logo-large:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--company-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.brand-features {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: var(--company-gold);
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Right Side - Login Form - MADE LARGER */
.login-form-container {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--white);
}

.login-card {
    width: 100%;
    max-width: 500px; /* Increased from 400px */
    background: var(--white);
    border-radius: var(--border-radius-2xl);
    padding: 3.5rem 3rem; /* Increased padding */
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--company-gradient);
    border-radius: var(--border-radius-2xl) var(--border-radius-2xl) 0 0;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 3rem; /* Increased margin */
}

.login-logo {
    width: 60px; /* Increased from 48px */
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.login-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.login-logo i {
    font-size: 1.5rem; /* Increased icon size */
    color: var(--primary-color);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.login-title {
    font-size: 2rem; /* Increased from 1.75rem */
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem; /* Increased margin */
    letter-spacing: -0.025em;
}

.login-subtitle {
    color: var(--gray-500);
    font-size: 1rem; /* Increased from 0.95rem */
    font-weight: 400;
}

/* Form Styles - MADE LARGER */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Increased gap */
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem; /* Increased margin */
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
    font-weight: 600;
    margin-bottom: 1rem; /* Increased margin */
    font-size: 0.95rem; /* Increased font size */
    letter-spacing: 0.025em;
}

.form-label i {
    font-size: 1rem; /* Increased icon size */
    color: var(--gray-400);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 1.125rem 1.25rem 1.125rem 3.25rem; /* Increased padding */
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    color: var(--gray-900);
    font-size: 1rem; /* Increased font size */
    font-weight: 400;
    transition: var(--transition-normal);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-control:hover:not(:focus) {
    border-color: var(--gray-300);
    background: var(--white);
}

.form-control::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.input-icon {
    position: absolute;
    left: 1.125rem; /* Adjusted position */
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.125rem; /* Increased icon size */
    z-index: 2;
    transition: var(--transition-fast);
}

.form-group:focus-within .input-icon {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Submit Button - MADE LARGER */
.btn-login {
    width: 100%;
    padding: 1.25rem 2.5rem; /* Increased padding */
    background: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-lg);
    color: white;
    font-size: 1.125rem; /* Increased font size */
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    margin-top: 1rem; /* Increased margin */
    letter-spacing: 0.025em;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
    transition: var(--transition-fast);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--gray-400);
    transform: none;
    box-shadow: none;
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* Increased gap */
    transition: var(--transition-fast);
}

/* Forgot Password */
.forgot-password {
    text-align: center;
    margin-top: 2rem; /* Increased margin */
}

.forgot-password a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem; /* Increased font size */
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 0.75rem 1.25rem; /* Increased padding */
    border-radius: var(--border-radius);
}

.forgot-password a:hover {
    color: var(--primary-dark);
    background: var(--gray-50);
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 3rem; /* Increased margin */
    padding-top: 2rem; /* Increased padding */
    border-top: 1px solid var(--gray-100);
}

.login-footer p {
    color: var(--gray-400);
    font-size: 0.875rem; /* Increased font size */
    font-weight: 400;
    margin: 0;
}

/* Error Styles */
.text-danger {
    color: var(--danger-color);
    font-size: 0.875rem; /* Increased font size */
    margin-top: 0.75rem; /* Increased margin */
    display: block;
    font-weight: 500;
}

.alert {
    padding: 1.25rem 1.5rem; /* Increased padding */
    margin-bottom: 2rem; /* Increased margin */
    border-radius: var(--border-radius-lg);
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem; /* Increased gap */
    animation: slideInDown 0.3s ease-out;
    border-left: 4px solid var(--danger-color);
}

.alert-danger {
    color: #b91c1c;
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #fca5a5;
}

.alert i {
    font-size: 1.25rem; /* Increased icon size */
    margin-top: 0.125rem;
    flex-shrink: 0;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.btn-login.loading {
    pointer-events: none;
    background: var(--gray-400);
}

.btn-login.loading .btn-content {
    opacity: 0.7;
}

/* Visual feedback for form validation */
.form-group.has-success .form-control {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.05);
}

.form-group.has-success .input-icon {
    color: var(--success-color);
}

.form-group.has-error .form-control {
    border-color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.form-group.has-error .input-icon {
    color: var(--danger-color);
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 1.125rem; /* Adjusted position */
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.625rem; /* Increased padding */
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: var(--gray-100);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.password-toggle i {
    font-size: 1.125rem; /* Increased icon size */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-brand {
        display: none;
    }
    
    .login-form-container {
        flex: none;
        width: 100%;
        background: var(--gray-50);
    }
}

@media (max-width: 768px) {
    .login-form-container {
        padding: 2rem 1rem;
    }
    
    .login-card {
        padding: 2.5rem 2rem; /* Adjusted for mobile */
        box-shadow: var(--shadow-lg);
        max-width: none;
        margin: 0 1rem;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .login-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .form-control {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 1rem;
    }
    
    .password-toggle {
        right: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-login:focus-visible,
.form-control:focus-visible,
.forgot-password a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 2px;
    }
    
    .btn-login {
        border: 2px solid var(--primary-dark);
    }
}

/* Animation control */
.feature-item {
    animation-play-state: paused;
}

/* Clean and professional appearance */
.login-container {
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Improved button disabled state */
.btn-login.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}