﻿:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --accent: #06b6d4;
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px -4px rgba(0,0,0,0.1);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --nav-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6366f1 100%);
    --header-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* ===== LOGIN CARD ===== */
.login-container {
    max-width: 880px;
    width: 100%;
    margin: 2rem auto;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* ===== BRAND ===== */
.brand-section {
    text-align: center;
    padding: 1.75rem 0 1rem;
}

.brand-logo {
    max-width: 130px;
    height: auto;
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(79,70,229,0.15));
}

    .brand-logo:hover {
        transform: scale(1.05);
    }

.brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.brand-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* ===== FORM ===== */
.form-section {
    padding: 2rem 2.5rem;
}

.form-floating {
    margin-bottom: 1.25rem;
}

    .form-floating .form-control {
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        font-size: 0.92rem;
        padding-top: 1.5rem;
    }

        .form-floating .form-control:focus {
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
        }

    .form-floating label {
        color: var(--text-secondary);
        font-size: 0.88rem;
    }

/* ===== BUTTON ===== */
.btn-login {
    background: var(--header-gradient);
    color: white;
    padding: 0.7rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
        color: white;
    }

    .btn-login:active {
        transform: translateY(0);
    }

/* ===== IMAGE SECTION ===== */
.image-section {
    background-image: url('../images/logo.png');
    background-size: cover;
    background-position: center;
    min-height: 100%;
    position: relative;
    display: flex;
    align-items: stretch;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79,70,229,0.85) 0%, rgba(124,58,237,0.75) 50%, rgba(99,102,241,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

    .image-overlay h2 {
        font-weight: 700;
        font-size: 1.75rem;
        letter-spacing: -0.02em;
        margin-bottom: 0.75rem;
    }

    .image-overlay .lead {
        font-size: 1rem;
        opacity: 0.9;
        font-weight: 400;
        line-height: 1.6;
    }

/* ===== ERROR MESSAGE ===== */
.error-message {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #991b1b;
}

/* ===== LANGUAGE SELECTOR ===== */
.lang-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

    .lang-selector i {
        color: var(--text-muted);
        font-size: 0.9rem;
    }

    .lang-selector .form-select {
        border-color: var(--border-color);
        border-radius: var(--radius-sm);
        font-size: 0.82rem;
        color: var(--text-secondary);
    }

        .lang-selector .form-select:focus {
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
        }

/* ===== PARTNERS ===== */
.partners-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.partner-logo {
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

    .partner-logo:hover {
        opacity: 1;
        filter: grayscale(0%);
        transform: scale(1.05);
    }

/* ===== FOOTER ===== */
.login-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .login-container {
        margin: 1rem;
        border-radius: var(--radius-lg);
    }

    .form-section {
        padding: 1.5rem 1.5rem;
    }

    .image-section {
        min-height: 200px;
        order: -1;
    }

    .image-overlay h2 {
        font-size: 1.35rem;
    }
}
