/* ═══════════════════════════════════════════════════════
   SIGAMED — Shared Auth Page Styles
   ═══════════════════════════════════════════════════════ */

/* ── Full-page wrapper ────────────────────────────────── */
.auth-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    overflow: hidden;
}
.auth-bg {
    position: absolute;
    inset: 0;
    background-image: url('/img/bg-network.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── Card ─────────────────────────────────────────────── */
.auth-card {
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 48px 52px 44px;
    box-shadow:
        0 20px 60px rgba(44, 50, 148, .16),
        0 2px 8px rgba(0, 0, 0, .05);
    width: 100%;
    max-width: 460px;
    border: 1px solid rgba(255, 255, 255, 0.80);
}

/* ── Brand ────────────────────────────────────────────── */
.auth-brand {
    text-align: center;
    margin-bottom: 32px;
}
.auth-brand-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #2C3294, #0891b2);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(44, 50, 148, .28);
}
.auth-brand-icon i { font-size: 1.8rem; color: #fff; }
.auth-brand h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #2C3294;
    letter-spacing: -0.5px;
    margin: 0 0 4px;
}
.auth-brand p {
    font-size: .85rem;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* ── Section title (subtitle below brand) ─────────────── */
.auth-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px;
}
.auth-section-desc {
    font-size: .85rem;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ── Labels ───────────────────────────────────────────── */
.auth-label {
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}

/* ── Inputs ───────────────────────────────────────────── */
.auth-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 1rem;
    color: #111827;
    background: #f9fafb;
    transition: border-color .18s, box-shadow .18s, background .18s;
    outline: none;
    box-sizing: border-box;
}
.auth-input:focus {
    border-color: #2C3294;
    box-shadow: 0 0 0 3px rgba(44, 50, 148, .12);
    background: #fff;
}
.auth-input::placeholder { color: #9ca3af; }

/* Checkbox row */
.auth-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: #374151;
}
.auth-check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2C3294;
    cursor: pointer;
}

/* ── Primary button ───────────────────────────────────── */
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, #2C3294, #0891b2);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 6px 20px rgba(44, 50, 148, .28);
    transition: transform .18s, box-shadow .18s;
    cursor: pointer;
    margin-top: 8px;
    display: block;
    text-align: center;
    text-decoration: none;
}
.btn-auth:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(44, 50, 148, .38);
}
.btn-auth:active { transform: translateY(0); }

/* ── Divider & footer ─────────────────────────────────── */
.auth-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 24px 0 20px;
}
.auth-footer {
    text-align: center;
    font-size: .88rem;
    color: #6b7280;
}
.auth-footer a {
    color: #2C3294;
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* ── Validation messages ──────────────────────────────── */
.auth-field-error {
    font-size: .82rem;
    margin-top: 5px;
    display: block;
    color: #ef4444;
}
.auth-summary-error {
    font-size: .85rem;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
}
.auth-summary-error ul { margin: 0; padding-left: 18px; }

/* ── Success / info box ───────────────────────────────── */
.auth-info-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .88rem;
    color: #1e40af;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 520px) {
    .auth-card { padding: 36px 24px 32px; margin: 16px; max-width: 100%; }
}
