/* Container da página de autenticação */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f9fafb;
}

/* Card central */
.auth-card {
    width: 100%;
    /* Keep the content within the Google button's supported 400px width. */
    max-width: calc(400px + 4rem + 2px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 2rem;
}

/* Logo */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(to right, #9926f0, #d122e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Social */
.auth-social {
    width: 100%;
    margin: 12px 0;
    display: flex;
    justify-content: center;
}
#btnGoogle { min-width: 0; }

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 12px 0;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Título */
.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #111827;
}

/* Grupo de input */
.auth-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}
.auth-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

/* Inputs */
.auth-input {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    color: #111827;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.auth-input:focus {
    border-color: #9926f0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(153,38,240,0.25);
}

/* Wrapper com toggle de senha */
.auth-input-wrapper { position: relative; }
.auth-input-wrapper .auth-input { padding-right: 2.75rem; }
.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 1;
}
.auth-password-toggle:hover { color: #9926f0; }

/* Força da senha */
.auth-pwd-strength {
    height: 4px;
    background: #e5e7eb;
    border-radius: 9999px;
    margin-top: 6px;
    overflow: hidden;
}
.auth-pwd-strength-bar {
    height: 100%;
    border-radius: 9999px;
    width: 0;
    transition: width 0.3s ease, background 0.3s ease;
}
.auth-pwd-strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 3px;
    display: block;
    min-height: 1rem;
}

/* Checkbox */
.auth-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.auth-check-input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
    flex-shrink: 0;
}
.auth-check-input:checked {
    background: linear-gradient(to right, #9926f0, #d122e3);
    border-color: transparent;
}

/* Botões */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: filter 0.2s;
    font-size: 1rem;
}
.auth-btn-primary {
    background: linear-gradient(to right, #9926f0, #d122e3);
    color: #fff;
}
.auth-btn-primary:hover:not(:disabled) { filter: brightness(1.05); }
.auth-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Grid 2 colunas (cadastro) */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

/* Links auxiliares */
.auth-links {
    margin-top: 1rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}
.auth-links a { color: #9926f0; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-muted { color: #6b7280; }

/* Mensagens de erro */
.auth-error {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Cores de validação */
.text-success { color: #16a34a !important; }
.text-danger  { color: #dc2626 !important; }

/* Lista de requisitos da senha */
.auth-req {
    list-style: none;
    margin: 0;
    padding: .25rem 0 0;
    color: #374151;
    font-size: .95rem;
}
.auth-req li { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; }

@media (max-width: 575px) {
    .auth-page { padding: 24px 16px; }
    .auth-card { max-width: 442px; padding: 24px 20px; }
}
