/* ═══════════════════════════════════════════════
   Atheneus Astro — Página de Acceso
   Fondo cósmico + formulario elegante
   ═══════════════════════════════════════════════ */

/* --- Fondo cósmico fullscreen --- */
.ath-acceso-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        linear-gradient(
            170deg,
            rgba(10, 10, 26, 0.85) 0%,
            rgba(13, 17, 23, 0.80) 40%,
            rgba(17, 24, 39, 0.85) 100%
        ),
        url('https://atheneusastro.com/wp-content/uploads/hero-home.jpg') center center / cover no-repeat fixed;
    color: #E8E6E3;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* --- Contenedor principal --- */
.ath-acceso-container {
    display: flex;
    max-width: 960px;
    width: 100%;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(232, 184, 75, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(232, 184, 75, 0.08);
}

/* --- Panel izquierdo (branding) --- */
.ath-acceso-left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    background:
        linear-gradient(
            180deg,
            rgba(232, 184, 75, 0.12) 0%,
            rgba(10, 10, 26, 0.4) 100%
        );
    border-right: 1px solid rgba(232, 184, 75, 0.15);
    text-align: center;
}

.ath-acceso-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #E8B84B !important;
    text-decoration: none !important;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(232, 184, 75, 0.4);
    margin-bottom: 16px;
}

.ath-acceso-logo:hover {
    color: #F4D68C !important;
    text-shadow: 0 0 30px rgba(232, 184, 75, 0.6);
}

.ath-acceso-tagline {
    font-size: 1.05rem;
    color: #c9b87a;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.ath-acceso-decorline {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #E8B84B, transparent);
    margin: 0 auto;
}

/* --- Panel derecho (formularios) --- */
.ath-acceso-right {
    flex: 1;
    padding: 40px 36px;
}

/* --- Pestañas login/registro --- */
.ath-acceso-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(232, 184, 75, 0.2);
}

.ath-acceso-tab {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #8a8070;
    font-family: 'Georgia', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.ath-acceso-tab:hover {
    color: #E8E6E3;
}

.ath-acceso-tab.active {
    color: #E8B84B;
    border-bottom-color: #E8B84B;
}

/* --- Paneles de contenido --- */
.ath-acceso-panel {
    display: none;
}

.ath-acceso-panel.active {
    display: block;
}

.ath-acceso-panel h3 {
    color: #E8E6E3;
    font-size: 1.35rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.ath-acceso-panel .ath-acceso-subtitle {
    color: #9a9080;
    font-size: 0.9rem;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* --- Campos del formulario --- */
.ath-acceso-wrapper .atheneus-field-group {
    margin-bottom: 18px;
}

.ath-acceso-wrapper .atheneus-field-group label {
    display: block;
    color: #c9b87a;
    font-size: 0.82rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ath-acceso-wrapper .atheneus-field-text,
.ath-acceso-wrapper input[type="text"],
.ath-acceso-wrapper input[type="email"],
.ath-acceso-wrapper input[type="password"],
.ath-acceso-wrapper input[type="date"],
.ath-acceso-wrapper input[type="time"],
.ath-acceso-wrapper select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(232, 184, 75, 0.2);
    border-radius: 8px;
    color: #E8E6E3;
    font-size: 0.95rem;
    font-family: 'Georgia', serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.ath-acceso-wrapper input:focus,
.ath-acceso-wrapper select:focus {
    outline: none;
    border-color: #E8B84B;
    box-shadow: 0 0 12px rgba(232, 184, 75, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.ath-acceso-wrapper input::placeholder {
    color: #6a6050;
}

/* --- Fieldsets (registro) --- */
.ath-acceso-wrapper .ath-fieldset {
    border: 1px solid rgba(232, 184, 75, 0.15);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.ath-acceso-wrapper .ath-fieldset legend {
    color: #E8B84B;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0 10px;
}

/* --- Checkbox --- */
.ath-acceso-wrapper .atheneus-checkbox-label {
    color: #9a9080;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ath-acceso-wrapper .atheneus-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #E8B84B;
    flex-shrink: 0;
}

/* --- Botón principal --- */
.ath-acceso-wrapper .atheneus-btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #E8B84B, #c9a030);
    color: #0a0a1a;
    border: none;
    border-radius: 8px;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 184, 75, 0.25);
}

.ath-acceso-wrapper .atheneus-btn-primary:hover {
    background: linear-gradient(135deg, #F4D68C, #E8B84B);
    box-shadow: 0 6px 25px rgba(232, 184, 75, 0.4);
    transform: translateY(-1px);
}

.ath-acceso-wrapper .atheneus-btn-primary:active {
    transform: translateY(0);
}

/* --- Mensajes de feedback --- */
.ath-acceso-wrapper .atheneus-form-messages {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.88rem;
}

.ath-acceso-wrapper .atheneus-form-messages.atheneus-msg-error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff8a95;
}

.ath-acceso-wrapper .atheneus-form-messages.atheneus-msg-success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #7ddf96;
}

/* --- Links y separadores --- */
.ath-acceso-links {
    text-align: center;
    margin-top: 14px;
}

.ath-acceso-links a {
    color: #c9b87a;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.ath-acceso-links a:hover {
    color: #E8B84B;
    text-decoration: underline;
}

.ath-acceso-separator {
    text-align: center;
    margin: 20px 0;
    color: #6a6050;
    font-size: 0.85rem;
}

.ath-acceso-separator span {
    padding: 0 12px;
}

.ath-acceso-switch {
    text-align: center;
    color: #9a9080;
    font-size: 0.9rem;
}

.ath-acceso-switch a,
.ath-switch-tab {
    color: #E8B84B !important;
    text-decoration: none !important;
    cursor: pointer;
    font-weight: 600;
}

.ath-acceso-switch a:hover,
.ath-switch-tab:hover {
    color: #F4D68C !important;
    text-decoration: underline !important;
}

/* --- Estado logueado --- */
.ath-acceso-logueado {
    text-align: center;
    padding: 60px 30px;
}

.ath-acceso-logueado p {
    color: #E8E6E3;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.ath-acceso-logueado a {
    color: #E8B84B;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ath-acceso-container {
        flex-direction: column;
    }

    .ath-acceso-left {
        flex: none;
        padding: 30px 20px;
        border-right: none;
        border-bottom: 1px solid rgba(232, 184, 75, 0.15);
    }

    .ath-acceso-right {
        padding: 28px 20px;
    }

    .ath-acceso-tab {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .ath-acceso-wrapper .ath-fieldset {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .ath-acceso-wrapper {
        padding: 20px 12px;
    }

    .ath-acceso-right {
        padding: 20px 16px;
    }

    .ath-acceso-panel h3 {
        font-size: 1.15rem;
    }
}


/* CAMPO WHATSAPP + IDIOMA */
.ath-acceso-wrapper .atheneus-phone-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ath-acceso-wrapper .atheneus-phone-code {
    width: 100px !important;
    min-width: 100px;
    max-width: 100px;
    flex: 0 0 100px;
    padding: 12px 8px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(232, 184, 75, 0.2);
    border-radius: 8px;
    color: #E8E6E3;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
}

.ath-acceso-wrapper .atheneus-phone-number {
    flex: 1;
    min-width: 0;
    width: auto !important;
}

.ath-acceso-wrapper .atheneus-field-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(232, 184, 75, 0.2);
    border-radius: 8px;
    color: #E8E6E3;
    font-size: 0.95rem;
    font-family: "Georgia", serif;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
}

.ath-acceso-wrapper .atheneus-phone-code:focus,
.ath-acceso-wrapper .atheneus-field-select:focus {
    outline: none;
    border-color: #E8B84B;
    box-shadow: 0 0 12px rgba(232, 184, 75, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

/* Opciones del select (navegadores que lo soporten) */
.ath-acceso-wrapper .atheneus-phone-code option,
.ath-acceso-wrapper .atheneus-field-select option {
    background: #1a1225;
    color: #E8E6E3;
    padding: 8px;
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .ath-acceso-wrapper .atheneus-phone-group {
        gap: 6px;
    }
    .ath-acceso-wrapper .atheneus-phone-code {
        width: 85px !important;
        min-width: 85px;
        max-width: 85px;
        flex: 0 0 85px;
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    .ath-acceso-wrapper .atheneus-phone-number {
        font-size: 0.9rem;
    }
}
