/* ====================================================================
   Pindorama — Login, Cadastro e Painel
   Reaproveita variáveis e estilos definidos em ficha.css / home.css.
   ==================================================================== */

.auth-shell {
    width: min(440px, 100%);
    gap: 18px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, 0.86);
    border: 1.5px solid var(--purple-light);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 6px 18px rgba(59, 29, 67, 0.08);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--purple-dark);
}

.auth-field span {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--purple-dark);
    letter-spacing: 0.2px;
}

.auth-field input {
    border: 1.5px solid var(--purple-light);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 1rem;
    color: var(--purple-dark);
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(105, 67, 111, 0.15);
}

.auth-role {
    border: 1.5px dashed var(--purple-light);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-role legend {
    color: var(--purple-dark);
    font-weight: bold;
    padding: 0 6px;
}

.auth-role-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--purple-dark);
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background 120ms ease;
}

.auth-role-option:hover {
    background: rgba(233, 216, 241, 0.4);
}

.auth-role-option input {
    margin-top: 4px;
    accent-color: var(--purple);
}

.auth-role-option span {
    flex: 1;
    line-height: 1.4;
    font-size: 0.95rem;
}

.auth-role-option strong {
    color: var(--purple-dark);
}

.auth-submit {
    margin-top: 4px;
}

.auth-footer {
    margin-top: 6px;
}

.auth-alert {
    background: rgba(155, 37, 77, 0.08);
    border: 1.5px solid var(--danger);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.auth-role-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 10px;
    background: var(--purple-light);
    color: var(--purple-dark);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Bloco de status no topo da home (logado / sair). */
.home-auth-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    color: var(--purple-dark);
    font-size: 0.95rem;
}

.home-auth-status .home-auth-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1.5px dashed var(--purple-light);
    padding-bottom: 1px;
    transition: color 120ms ease, border-color 120ms ease;
}

.home-auth-status .home-auth-link:hover {
    color: var(--purple-dark);
    border-color: var(--purple);
}

/* Foto de perfil opcional no register: preview + botão de upload. */
.auth-foto-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-foto-field > span small {
    color: var(--muted, #91739a);
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}
.auth-foto-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-foto-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: linear-gradient(135deg, var(--purple, #69436f), var(--purple-dark, #3b1d43));
    background-image: linear-gradient(135deg, rgba(118, 84, 124, 0.85), rgba(43, 18, 50, 0.95));
    color: #fff7e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    border: 2px solid rgba(216, 162, 58, 0.55);
    box-shadow: 0 4px 12px rgba(43, 18, 50, 0.30);
    flex: 0 0 72px;
}
.auth-foto-preview.is-empty {
    /* mantém o gradiente base como background-image; quando o usuário
       escolhe um arquivo, JS substitui pela url(data:...) e remove
       .is-empty. */
}
.auth-foto-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.auth-foto-hint {
    color: var(--muted, #91739a);
    font-size: 0.82rem;
}
