/* ============================================================
   NP Meu Consultório — CSS das telas de autenticação
   ============================================================ */

* {
    font-family: "Inter", sans-serif;
}

/* Skip link (navegação por teclado) — escondido por padrão;
   aparece ao receber foco (atalho de acessibilidade). */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    background: #0d6efd;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

body {
    /* Gradiente suave e profissional — clínica/psicologia */
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 50%, #6f42c1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.auth-card .card-header {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    border: none;
    padding: 1.75rem 2rem;
    text-align: center;
}

.auth-card .card-header .brand-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.auth-card .card-body {
    padding: 2rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.35rem;
}

.input-group-text {
    border-radius: 10px 0 0 10px;
}

.form-control {
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #dee2e6;
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    border-color: #86b7fe;
}

.btn-auth {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
    color: #fff;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 16, 242, 0.35);
    color: #fff;
}

.back-to-site {
    font-size: 0.85rem;
}

.alert {
    border-radius: 12px;
}

/* ── Acessibilidade ────────────────────────────────────────── */

:focus-visible {
    outline: 3px solid #6610f2;
    outline-offset: 2px;
}

/* ── Responsividade ────────────────────────────────────────── */

@media (max-width: 576px) {
    body {
        padding: 1rem;
        align-items: flex-start;
        overflow-y: auto;
    }

    .auth-card {
        margin-top: 2rem;
        border-radius: 16px;
    }

    .auth-card .card-header {
        padding: 1.25rem 1rem;
    }

    .auth-card .card-body {
        padding: 1.25rem;
    }

    .auth-card .card-header .brand-icon {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    .form-control {
        font-size: 16px; /* evita zoom no iOS */
    }
}

/* Redução de movimento */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
