@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #f8fafc;
}

.login-container {
    display: flex;
    min-height: 100vh;
    position: relative;
}

.mobile-header {
    display: none;
}

.login-left {
    flex: 1.3;
    padding: 50px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('../../img/login1.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: slideshow 15s infinite;
}

.login-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.85) 0%, 
        rgba(30, 41, 59, 0.8) 50%, 
        rgba(30, 64, 175, 0.75) 100%);
}


@keyframes slideshow {
    0%, 33.33% {
        background-image: url('../../img/login1.jpg');
    }

    33.34%, 66.66% {
        background-image: url('../../img/login2.jpg');
    }

    66.67%, 100% {
        background-image: url('../../img/login3.jpg');
    }
}


.logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center; 
    align-items: center;
}

.logo-icon {
    display: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
    text-align: center; 
}

.logo-text h1 {
    font-size: 3rem; 
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.3rem;
}

.logo-text .subtitle {
    color: rgba(241, 245, 249, 0.9);
    font-size: 1.1rem; 
    line-height: 1.4;
    font-weight: 400;
    margin-top: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.welcome-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto; 
    transform: translateY(-30px);
}

.welcome-content h1 {
    display: none;
}

.welcome-content p {
    color: rgba(241, 245, 249, 0.9);
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 450px;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    text-align: center; 
}

.footer-text {
    color: rgba(241, 245, 249, 0.7);
    font-size: 0.9rem;
    font-weight: 400;
    margin-top: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center; 
}

.login-right {
    flex: 1;
    background: 
        linear-gradient(135deg, 
            #ffffff 0%, 
            #f8fafc 25%, 
            #f1f5f9 50%, 
            #e2e8f0 75%, 
            #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(29, 78, 216, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(59, 130, 246, 0.02) 0%, 
            rgba(147, 197, 253, 0.04) 50%, 
            rgba(59, 130, 246, 0.03) 100%);
    z-index: 1;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    z-index: 10;
    position: relative;
}

.brand-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-header h2 {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.form-header h3 {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #64748b;
    font-size: 1rem;
    font-weight: 400;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.05);
}

.form-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.login-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.demo-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.demo-info small {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 400;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #7d86ab 0%, #172a87 100%);
        overflow: hidden;
    }
    
    .login-container {
        flex-direction: column;
        height: 100vh;
        position: relative;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        flex: 1;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        position: relative;
        overflow: hidden;
    }
    
    .login-right::before {
        display: none;
    }
    
    .mobile-header {
        display: block;
        position: absolute;
        top: 190px;
        left: 0;
        right: 0;
        padding: 25px 20px;
        text-align: center;
        z-index: 50;
    }
    
    .mobile-logo {
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 15px;
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-logo svg {
        width: 30px;
        height: 30px;
    }
    
    .mobile-title {
        color: white;
        font-size: 2.2rem;
        font-weight: 700;
        margin-bottom: 8px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        letter-spacing: -0.5px;
    }
    
    .mobile-subtitle {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1.2rem;
        font-weight: 400;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    }
    
    .login-form-container {
        width: calc(100% - 40px);
        max-width: 400px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 24px;
        padding: 40px 30px 30px;
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-top: 140px;
        position: relative;
        z-index: 10;
    }
    
    .form-header {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .form-header h3 {
        color: #1a1a1a;
        font-size: 1.6rem;
        font-weight: 700;
        margin-bottom: 8px;
    }
    
    .form-header p {
        color: #666;
        font-size: 0.9rem;
        font-weight: 400;
    }
    
    .error-message {
        background: rgba(254, 242, 242, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(254, 202, 202, 0.5);
        color: #dc2626;
        padding: 14px 18px;
        border-radius: 16px;
        margin-bottom: 25px;
        font-size: 0.85rem;
        font-weight: 500;
        text-align: center;
    }
    
    .login-form {
        gap: 20px;
    }
    
    .form-group input {
        width: 100%;
        padding: 18px 20px;
        border: 2px solid rgba(226, 232, 240, 0.6);
        border-radius: 16px;
        font-size: 1rem;
        font-weight: 400;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        outline: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        min-height: 56px;
    }
    
    .form-group input:focus {
        border-color: #667eea;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 
            0 0 0 3px rgba(102, 126, 234, 0.1),
            0 8px 25px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }
    
    .form-group input::placeholder {
        color: #94a3b8;
        font-weight: 400;
    }
    
    .login-btn {
        background: linear-gradient(135deg, #2d47bb 0%, #5268d7 100%);
        color: white;
        border: none;
        padding: 18px 24px;
        border-radius: 16px;
        font-size: 1.05rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 10px;
        box-shadow: 
            0 10px 30px rgba(102, 126, 234, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1);
        min-height: 56px;
    }
    
    .login-btn:hover,
    .login-btn:active {
        transform: translateY(-3px);
        box-shadow: 
            0 15px 40px rgba(102, 126, 234, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.2);
    }
    
    .demo-info {
        margin-top: 25px;
        padding-top: 25px;
        border-top: 1px solid rgba(241, 245, 249, 0.5);
    }
    
    .demo-info small {
        color: #64748b;
        font-size: 0.8rem;
        font-weight: 400;
        background: rgba(248, 250, 252, 0.8);
        padding: 10px 14px;
        border-radius: 12px;
        display: inline-block;
        border: 1px solid rgba(226, 232, 240, 0.5);
        backdrop-filter: blur(10px);
    }
    
    .floating-shapes {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 1;
    }
    
    .shape {
        position: absolute;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        animation: float 6s ease-in-out infinite;
    }
    
    .shape:nth-child(1) {
        width: 80px;
        height: 80px;
        top: 20%;
        left: 10%;
        animation-delay: 0s;
    }
    
    .shape:nth-child(2) {
        width: 60px;
        height: 60px;
        top: 60%;
        right: 15%;
        animation-delay: 2s;
    }
    
    .shape:nth-child(3) {
        width: 100px;
        height: 100px;
        bottom: 20%;
        left: 20%;
        animation-delay: 4s;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px) rotate(0deg);
            opacity: 0.7;
        }
        50% {
            transform: translateY(-20px) rotate(180deg);
            opacity: 1;
        }
    }
    
    .login-right::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: 
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
        z-index: 2;
    }
}

@media (max-width: 480px) {
    .mobile-header {
        padding: 20px 15px;
        top: 100px;
    }
    
    .mobile-title {
        font-size: 1.9rem;
        margin-bottom: 6px;
    }
    
    .mobile-subtitle {
        font-size: 1.1rem;
    }
    
    .login-form-container {
        margin-top: 220px;
    }
    
    .form-header h3 {
        font-size: 1.4rem;
    }
    
    .form-group input,
    .login-btn {
        padding: 16px 18px;
        min-height: 52px;
    }
}

.login-btn.loading {
    pointer-events: none;
    position: relative;
    opacity: 0.9;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}
body::after {
    content: "";
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    background-image: 
        url('../../img/login1.jpg'),
        url('../../img/login2.jpg'),
        url('../../img/login3.jpg');
}