/* =====================================================
   ClinicSoft - Estilos de Autenticación (login/recover/reset)
   Layout split: branding + fondo a la izquierda, card a la derecha
   ===================================================== */

.auth-page,
.auth-page * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(11, 27, 43, 0.55) 0%, rgba(44, 83, 100, 0.55) 100%),
        var(--auth-bg, linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: stretch;
    overflow-x: hidden;
}

.auth-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Panel izquierdo: fondo + marca */
.auth-panel-left {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.auth-panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9, 20, 34, 0.65) 0%, rgba(20, 47, 61, 0.45) 100%);
}

.auth-branding {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 460px;
}

.auth-branding .auth-logo {
    height: 110px;
    max-width: 280px;
    object-fit: contain;
    margin-bottom: 22px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.auth-branding .auth-brand-icon {
    font-size: 72px;
    margin-bottom: 18px;
    color: #00d4ff;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.auth-branding h1 {
    font-weight: 700;
    font-size: 34px;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.auth-branding p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
}

.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    max-width: 380px;
    margin-inline: auto;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
}

.auth-features li i {
    color: #00d4ff;
    font-size: 18px;
    width: 22px;
    text-align: center;
}

/* Panel derecho: card de acceso */
.auth-panel-right {
    flex: 0 0 480px;
    max-width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-header .auth-logo {
    height: 64px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 14px;
}

.auth-card-header .auth-card-icon {
    font-size: 40px;
    color: var(--auth-accent, #007bff);
    margin-bottom: 12px;
}

.auth-card-header h2 {
    font-weight: 700;
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 4px;
}

.auth-card-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Formularios */
.form-floating {
    margin-bottom: 16px;
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: 10px;
    height: 52px;
    padding: 14px 14px;
    border: 2px solid #e9ecef;
    background: #fff;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--auth-accent, #007bff);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--auth-accent, #007bff) 20%, transparent);
}

.form-floating > label {
    padding: 12px 14px;
}

.auth-btn {
    background: var(--auth-accent, #007bff);
    border: none;
    border-radius: 10px;
    height: 52px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    color: #fff;
    transition: all 0.2s;
}

.auth-btn:hover,
.auth-btn:focus {
    color: #fff;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--auth-accent, #007bff) 35%, transparent);
}

.auth-links {
    text-align: center;
    margin-top: 22px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: #adb5bd;
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.auth-btn-outline {
    width: 100%;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 2px dashed color-mix(in srgb, var(--auth-accent, #007bff) 45%, transparent);
    background: color-mix(in srgb, var(--auth-accent, #007bff) 6%, #fff);
    color: var(--auth-accent, #007bff);
    transition: all 0.2s;
}

.auth-btn-outline:hover {
    border-color: var(--auth-accent, #007bff);
    background: color-mix(in srgb, var(--auth-accent, #007bff) 14%, #fff);
    transform: translateY(-1px);
}

.auth-demo-note {
    font-size: 0.78rem;
    color: #6c757d;
    margin-bottom: 0;
    text-align: center;
}

.auth-alert {
    border-radius: 10px;
}

.auth-links a {
    color: #495057;
    text-decoration: none;
}

.auth-links a:hover {
    color: var(--auth-accent, #007bff);
}

.auth-alert {
    border-radius: 10px;
}

/* Login sin plantilla previa (fallback) */
@media (max-width: 992px) {
    .auth-panel-left {
        display: none;
    }

    .auth-panel-right {
        flex: 1 1 auto;
        box-shadow: none;
        padding: 32px 20px;
    }

    .auth-page {
        align-items: center;
        justify-content: center;
    }
}