/**
 * Estilos del Sistema de Autenticación - Academia MSV
 * includes/auth-system/auth-styles.css
 */

/* Variables CSS elegantes */
:root {
    --color-primary: #2c1810;
    --color-secondary: #8b6f47;
    --color-accent: #d4af37;
    --color-light-wood: #c19a6b;
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-gray: #666666;
    --color-bg-dark: #0f0f0f;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ELIMINACIÓN TOTAL DE SCROLL */
.auth-page-active * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.auth-page-active *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.auth-page-active html, 
.auth-page-active body {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================================================
   CONTROL DEL HEADER Y FOOTER - PREVENCIÓN DE FOUC
   ============================================================================ */
   
/* Ocultar header en páginas de auth */
.welcome-screen-active #brx-header,
.login-page-active #brx-header,
.password-reset-active #brx-header,
.auth-page-active #brx-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* OCULTAR FOOTER EN PÁGINAS DE AUTH - MÚLTIPLES SELECTORES */
.welcome-screen-active #brx-footer,
.login-page-active #brx-footer,
.password-reset-active #brx-footer,
.auth-page-active #brx-footer,
.welcome-screen-active footer,
.login-page-active footer,
.password-reset-active footer,
.auth-page-active footer,
.welcome-screen-active .site-footer,
.login-page-active .site-footer,
.password-reset-active .site-footer,
.auth-page-active .site-footer,
.welcome-screen-active [class*="footer"],
.login-page-active [class*="footer"],
.password-reset-active [class*="footer"],
.auth-page-active [class*="footer"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

/* SELECTORES ESPECÍFICOS PARA TEMA SALIENT Y OTROS TEMAS COMUNES */
.login-page-active #nectar-footer,
.password-reset-active #nectar-footer,
.auth-page-active #nectar-footer,
.login-page-active #footer-outer,
.password-reset-active #footer-outer,
.auth-page-active #footer-outer,
.login-page-active .footer-outer,
.password-reset-active .footer-outer,
.auth-page-active .footer-outer,
.login-page-active #main-footer,
.password-reset-active #main-footer,
.auth-page-active #main-footer,
.login-page-active .main-footer,
.password-reset-active .main-footer,
.auth-page-active .main-footer,
.login-page-active #site-footer,
.password-reset-active #site-footer,
.auth-page-active #site-footer,
.login-page-active .nectar-footer,
.password-reset-active .nectar-footer,
.auth-page-active .nectar-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* CONTENEDORES PRINCIPALES */
#login-page-auth-container,
#password-reset-page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* PANTALLA DE BIENVENIDA ELEGANTE */
.welcome-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: linear-gradient(135deg, 
        var(--color-bg-dark) 0%, 
        var(--color-primary) 30%, 
        var(--color-secondary) 70%, 
        var(--color-bg-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 1.2s ease-out;
    overflow: hidden;
}

.welcome-screen-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.15) 0%, transparent 70%),
        radial-gradient(circle at 70% 80%, rgba(193, 154, 107, 0.15) 0%, transparent 70%);
    animation: gentle-pulse 4s ease-in-out infinite alternate;
}

@keyframes gentle-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.welcome-screen-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* IMAGEN DE BIENVENIDA */
.welcome-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    min-width: 120vw;
    min-height: 120vh;
    object-fit: cover;
    object-position: center center;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    filter: blur(2px) brightness(0.4);
    z-index: 1;
}

/* LOADER ELEGANTE */
.elegant-loader {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-rings {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: elegant-spin 2s linear infinite;
}

.loader-ring.primary {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    border-top: 2px solid var(--color-accent);
    border-right: 2px solid var(--color-accent);
}

.loader-ring.secondary {
    width: 100px;
    height: 100px;
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--color-secondary);
    animation-duration: 3s;
    animation-direction: reverse;
}

.loader-ring.accent {
    width: 120px;
    height: 120px;
    top: 0;
    left: 0;
    border-top: 2px solid var(--color-light-wood);
    animation-duration: 4s;
}

@keyframes elegant-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-content {
    text-align: center;
}

.loader-text {
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-glow 2s ease-in-out infinite alternate;
}

.loader-subtext {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 400;
    animation: text-pulse 2.5s ease-in-out infinite;
}

@keyframes text-glow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes text-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* CONTENEDOR PRINCIPAL ELEGANTE */
.main-auth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, 
        var(--color-bg-dark) 0%, 
        var(--color-primary) 50%, 
        var(--color-bg-dark) 100%);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    opacity: 0;
    transition: opacity 1.2s ease-in;
    overflow: hidden;
}

.main-auth-wrapper.show {
    opacity: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(193, 154, 107, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, 
            rgba(15, 15, 15, 0.9) 0%, 
            rgba(44, 24, 16, 0.8) 50%, 
            rgba(15, 15, 15, 0.9) 100%);
    z-index: 1;
}

/* CONTENEDOR DEL FORMULARIO ELEGANTE */
.auth-form-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 520px;
    min-height: 500px;
    max-height: calc(100vh - 100px);
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(25px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 111, 71, 0.3);
    box-shadow: 
        var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Para password reset (más pequeño) */
#password-reset-page-container .auth-form-container {
    max-width: 480px;
}

.auth-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(193, 154, 107, 0.05) 0%, transparent 50%);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* HEADER ELEGANTE */
.elegant-header {
    padding: 25px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(139, 111, 71, 0.2);
    background: linear-gradient(135deg, 
        rgba(44, 24, 16, 0.3), 
        rgba(139, 111, 71, 0.2));
    flex-shrink: 0;
}

.elegant-logo {
    margin-bottom: 0px !important;
    animation: logo-glow 3s ease-in-out infinite alternate;
    display: flex;
    justify-content: center;
    align-items: center;
}

.elegant-logo .logo-image {
    width: 90px !important;
    height: 90px !important;
    object-fit: contain;
    border-radius: 8px;
}

.elegant-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.elegant-subtitle {
    font-size: 12px;
    color: var(--color-light-wood);
    letter-spacing: 1px;
    font-weight: 500;
}

/* TABS ELEGANTES */
.elegant-tabs {
    display: flex;
    background: rgba(15, 15, 15, 0.6);
    margin: 0;
    border-bottom: 1px solid rgba(139, 111, 71, 0.2);
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 12px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 111, 71, 0.15), 
        transparent);
    transition: left 0.6s ease;
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn.active {
    color: var(--color-accent);
    background: linear-gradient(135deg, 
        rgba(139, 111, 71, 0.15), 
        rgba(212, 175, 55, 0.1));
    border-bottom: 3px solid var(--color-accent);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.tab-icon {
    font-size: 18px;
}

.tab-btn span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* SECCIONES DEL FORMULARIO */
.auth-section {
    display: none;
    flex: 1;
    padding: 30px 30px 45px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 0;
}

.auth-section::-webkit-scrollbar {
    display: none;
}

.auth-section.active {
    display: flex;
    flex-direction: column;
    animation: elegant-fade-in 0.6s ease-out;
}

@keyframes elegant-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.section-title h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 8px;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 14px;
    color: var(--color-light-wood);
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* FORMULARIO ELEGANTE */
.elegant-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    min-height: 0;
}

.form-row {
    display: flex;
    gap: 15px;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group.half {
    flex: 1;
}

.elegant-field {
    position: relative;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(139, 111, 71, 0.3);
    transition: var(--transition);
    overflow: hidden;
}

.elegant-field:hover {
    border-color: rgba(139, 111, 71, 0.5);
    box-shadow: 0 0 20px rgba(139, 111, 71, 0.1);
}

.elegant-field:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.elegant-field label {
    display: block;
    padding: 12px 16px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-light-wood);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, 
        rgba(139, 111, 71, 0.1), 
        transparent);
    border-bottom: 1px solid rgba(139, 111, 71, 0.15);
}

.elegant-field input {
    width: 100%;
    padding: 14px 16px;
    background: transparent !important;
    border: none;
    color: var(--color-white) !important;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: var(--transition);
}

.elegant-field input::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    font-weight: 400;
}

/* Asegurar que el texto sea siempre visible */
.elegant-field input,
.elegant-field input:focus,
.elegant-field input:active,
.elegant-field input:-webkit-autofill {
    -webkit-text-fill-color: var(--color-white) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(26, 26, 26, 0.8) inset !important;
    box-shadow: 0 0 0px 1000px rgba(26, 26, 26, 0.8) inset !important;
}

/* CAMPOS DE CONTRASEÑA CON TOGGLE */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    bottom: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.password-toggle:hover {
    background: rgba(139, 111, 71, 0.2);
    transform: scale(1.1);
}

.toggle-icon {
    font-size: 16px;
    transition: var(--transition);
    color: var(--color-light-wood);
}

.toggle-icon.hide-icon {
    display: none;
}

.password-field.show-password .toggle-icon.show-icon {
    display: none;
}

.password-field.show-password .toggle-icon.hide-icon {
    display: block;
    color: var(--color-accent);
}

.password-field input {
    padding-right: 55px !important;
}

.field-focus {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transition: width 0.4s ease;
}

.elegant-field:focus-within .field-focus {
    width: 100%;
}

/* OPCIONES DEL FORMULARIO */
.form-options {
    display: flex;
    justify-content: center;
    margin: 15px 0;
}

.remember-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--color-light-wood);
    font-size: 13px;
    font-weight: 500;
}

.remember-switch input {
    display: none;
}

.switch-slider {
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(139, 111, 71, 0.3);
}

.switch-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--color-white);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.remember-switch input:checked + .switch-slider {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-color: var(--color-accent);
}

.remember-switch input:checked + .switch-slider::after {
    left: 24px;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: var(--color-light-wood);
    font-size: 13px;
    line-height: 1.5;
}

.terms-check input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid rgba(139, 111, 71, 0.4);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    margin-top: 2px;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terms-check input:checked + .checkmark {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-color: var(--color-accent);
}

.terms-check input:checked + .checkmark::after {
    opacity: 1;
}

.terms-text a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.terms-text a:hover {
    color: var(--color-light-wood);
    text-decoration: underline;
}

/* BOTONES ELEGANTES */
.elegant-button {
    position: relative;
    background: transparent;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    overflow: hidden;
    margin: 25px 0 40px;
    transition: var(--transition);
    min-height: 52px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.elegant-button.primary {
    background: linear-gradient(135deg, 
        var(--color-secondary) 0%, 
        var(--color-accent) 100%);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(139, 111, 71, 0.3);
}

.elegant-button.secondary {
    background: linear-gradient(135deg, 
        var(--color-accent) 0%, 
        var(--color-light-wood) 100%);
    color: var(--color-black);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.button-content {
    position: relative;
    z-index: 2;
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    z-index: 3;
    transition: left 0.6s ease;
}

.elegant-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 111, 71, 0.4);
    text-decoration: none;
    color: var(--color-white);
}

.elegant-button:hover .button-shine {
    left: 100%;
}

.elegant-button:active {
    transform: translateY(-1px);
}

.elegant-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* PIE DEL FORMULARIO */
.form-footer {
    text-align: center;
    margin-top: 1px;
    flex-shrink: 0;
    padding-bottom: 25px;
}

.recovery-link {
    color: var(--color-light-wood);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.recovery-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.recovery-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.recovery-link:hover::after {
    width: 100%;
}

/* MENSAJES DE ESTADO */
.status-messages {
    margin: 20px 30px;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    display: none;
    backdrop-filter: blur(15px);
    border: 1px solid transparent;
    flex-shrink: 0;
}

.status-messages.success {
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(39, 174, 96, 0.4);
    color: #27ae60;
    display: block;
}

.status-messages.error {
    background: rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.4);
    color: #e74c3c;
    display: block;
}

.status-messages.loading {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--color-accent);
    display: block;
}

/* SECCIÓN DE ÉXITO */
.success-animation {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: success-bounce 1s ease-in-out;
}

@keyframes success-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.success-message {
    color: var(--color-light-wood);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* AJUSTES ESPECÍFICOS DE ESPACIADO */
#login-form-section .elegant-button {
    margin: 35px 0 5px 0 !important;
}

#login-form-section .form-footer {
    margin-top: 5px !important;
    padding-bottom: 25px;
}

#register-form-section .elegant-button {
    margin: 30px 0 30px 0 !important;
}

#register-form-section .auth-section {
    padding-bottom: 50px !important;
}

.form-options {
    margin: 20px 0 15px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .auth-form-container {
        margin: 0 15px;
        max-width: calc(100% - 30px);
        max-height: calc(100vh - 60px);
    }

    .elegant-header {
        padding: 20px 25px 15px;
    }

    .elegant-logo .logo-image {
        width: 50px;
        height: 50px;
    }

    .elegant-title {
        font-size: 18px;
    }

    .auth-section {
        padding: 20px 25px;
    }

    .tab-btn {
        padding: 14px 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .elegant-field input {
        font-size: 14px;
        padding: 12px 14px;
    }

    .password-field input {
        padding-right: 50px !important;
    }

    .password-toggle {
        right: 12px;
        bottom: 6px;
        width: 28px;
        height: 28px;
    }

    .toggle-icon {
        font-size: 14px;
    }

    .elegant-button {
        padding: 14px 28px;
        font-size: 13px;
        margin: 18px 0 12px;
    }

    .section-title h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .auth-form-container {
        margin: 0 10px;
        max-width: calc(100% - 20px);
        max-height: calc(100vh - 50px);
    }

    .elegant-header {
        padding: 15px 20px 12px;
    }

    .auth-section {
        padding: 15px 20px;
    }

    .section-title h3 {
        font-size: 20px;
    }

    .elegant-form {
        gap: 15px;
    }

    .elegant-field label {
        font-size: 10px;
        padding: 10px 14px 5px;
    }

    .elegant-field input {
        font-size: 13px;
        padding: 11px 14px;
    }

    .password-field input {
        padding-right: 45px !important;
    }

    .password-toggle {
        right: 10px;
        bottom: 5px;
        width: 26px;
        height: 26px;
    }

    .toggle-icon {
        font-size: 13px;
    }

    .elegant-button {
        font-size: 12px;
        padding: 12px 24px;
    }
	
    .elegant-logo .logo-image {
        width: 40px;
        height: 40px;
	}
}

@media (max-height: 700px) {
    .auth-form-container {
        max-height: calc(100vh - 50px);
    }

    .elegant-header {
        padding: 15px 30px 12px;
    }

    .auth-section {
        padding: 15px 30px;
    }

    .elegant-form {
        gap: 12px;
    }

    .section-title {
        margin-bottom: 20px;
    }

    .elegant-button {
        margin: 15px 0 10px;
        padding: 14px 28px;
    }
}

@media (max-height: 600px) {
    .auth-form-container {
        max-height: calc(100vh - 40px);
    }

    .elegant-logo {
        font-size: 32px;
    }

    .elegant-title {
        font-size: 18px;
    }

    .section-title h3 {
        font-size: 20px;
    }
}