* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

:root {
    --primary-blue: #0891b2;
    --primary-dark: #0e7490;
    --border-color: rgba(255, 255, 255, 0.4);
    --text-white: #ffffff;
    --text-muted-light: rgba(255, 255, 255, 0.85);
}

html,
body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden !important;
    /* Cero scroll en toda la pantalla */
}

body {
    background: radial-gradient(circle at 80% 20%, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ==================== ONDAS DE FONDO ==================== */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 40% 50% 45% 42%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

body::before {
    width: 750px;
    height: 750px;
    top: -200px;
    right: -200px;
    transform: rotate(15deg);
}

body::after {
    width: 850px;
    height: 850px;
    bottom: -250px;
    left: -200px;
    transform: rotate(-25deg);
}

/* ==================== HEADER / LANG SWITCH ==================== */
.auth-header {
    position: absolute;
    top: 16px;
    right: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    padding: 0 24px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-switch a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.75;
    transition: all 0.2s ease;
    padding: 4px 8px;
}

.lang-switch a.active,
.lang-switch a:hover {
    opacity: 1;
    font-weight: 700;
    color: #ffffff;
}

.lang-switch .divider {
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== CONTENEDOR CENTRAL ==================== */
.auth-main {
    width: 100%;
    height: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 10;
}

.login-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
}

/* ==================== LOGO / BRANDING ==================== */
.login-brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.brand-logo-container {
    width: 90px;
    height: 90px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 4px;
}

/* Header Formulario */
.form-header {
    margin-bottom: 20px;
    color: var(--text-white);
}

.form-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.form-header p {
    font-size: 0.8rem;
    color: var(--text-muted-light);
}

/* ==================== FORMULARIO & INPUTS ==================== */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
    width: 100%;
    text-align: left;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    transition: stroke 0.2s ease;
}

.form-control {
    width: 100%;
    height: 46px;
    padding: 12px 16px 12px 48px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.25s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.form-control:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    stroke: #ffffff;
}

/* Validación de Errores */
.form-control.is-invalid {
    border-color: #fca5a5;
    background: rgba(239, 68, 68, 0.2);
}

.invalid-feedback {
    display: block;
    margin-top: 6px;
    color: #fca5a5;
    font-size: 0.78rem;
}

/* ==================== OPCIONES & RECORDAR ==================== */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.82rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted-light);
}

.remember input[type="checkbox"] {
    accent-color: #ffffff;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.forgot-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* ==================== BOTÓN DE LOGIN ==================== */
.login-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.login-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.login-btn:active {
    transform: translateY(0);
}

/* ==================== RESPONSIVE MÓVIL (COMPACTO SIN OVERFLOW) ==================== */
@media (max-height: 700px),
(max-width: 480px) {
    .auth-main {
        padding: 12px;
    }

    .brand-logo-container {
        width: 75px;
        height: 75px;
        margin-bottom: 6px;
    }

    .login-brand-section {
        margin-bottom: 12px;
    }

    .form-header {
        margin-bottom: 14px;
    }

    .form-header h2 {
        font-size: 1.1rem;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-control,
    .login-btn {
        height: 42px;
    }

    .login-options {
        margin-bottom: 16px;
    }

    body::before {
        width: 350px;
        height: 350px;
        top: -120px;
        right: -120px;
    }

    body::after {
        width: 380px;
        height: 380px;
        bottom: -150px;
        left: -120px;
    }
}