/* ── Wrapper centrado ── */
.login-wrap {
    min-height: calc(100vh - 64px - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f4f7fb;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 44px;
    box-shadow: 0 4px 28px rgba(0,40,100,.10);
    width: 100%;
    max-width: 440px;
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-card.card-wide { max-width: 640px; }

/* ── Cabeçalho ── */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 14px;
}

.login-logo span {
    font-size: 26px;
    font-weight: 800;
    color: #0B3D7A;
    letter-spacing: -.5px;
}

.login-titulo {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #0055a4;
    margin: 0 0 28px;
    letter-spacing: -.2px;
}

/* ── Alerta de erro ── */
.login-erro {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6c6;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Alerta de verificação de e-mail (pós-cadastro) */
.alerta-verificacao {
    background: #fffbe6;
    color: #7a5f00;
    border: 1px solid #ffe082;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}
.alerta-verificacao-icone {
    font-size: 20px;
    color: #c9960c;
    flex-shrink: 0;
    margin-top: 1px;
}
.alerta-verificacao-texto {
    flex: 1;
    min-width: 0;
}
.alerta-verificacao-sub {
    display: block;
    margin-top: 4px;
    color: #8c7320;
    font-weight: 500;
}

/* ── Campos ── */
.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1e2d3d;
    margin-bottom: 5px;
}

.login-field input,
.login-field select,
.login-field textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #d1d9e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1e2d3d;
    background: #fafdff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.login-field input:focus,
.login-field select:focus,
.login-field textarea:focus {
    border-color: #0055a4;
    box-shadow: 0 0 0 3px rgba(0,85,164,.1);
    outline: none;
    background: #fff;
}

.login-field input::placeholder { color: #b0bcc8; }
.login-field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.login-field select   { cursor: pointer; }

/* ── Botão principal ── */
.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0055a4 0%, #0077cc 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,85,164,.3);
    transition: opacity .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-login:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* ── Link de rodapé ── */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7a8d;
}

.login-footer a {
    color: #0055a4;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover { text-decoration: underline; }

/* ── Section title (formulário de cadastro) ── */
.login-section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0055a4;
    border-left: 3px solid #0055a4;
    padding-left: 10px;
    margin: 24px 0 16px;
}

/* ── Linha dupla ── */
.login-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.login-row .login-field {
    flex: 1;
    min-width: 160px;
}

/* ── Senha opcional hint ── */
.login-hint {
    font-size: 12px;
    color: #6b7a8d;
    margin-top: 4px;
}

/* ── Avatar upload ── */
.avatar-upload-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.avatar-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #e3f0fb;
    border: 2.5px dashed #0055a4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    position: relative;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-preview i {
    font-size: 40px;
    color: #0055a4;
    opacity: .6;
}

.avatar-upload-label:hover .avatar-preview {
    border-color: #0077cc;
    box-shadow: 0 0 0 4px rgba(0,85,164,.12);
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0,55,120,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}

.avatar-upload-label:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-overlay i {
    font-size: 22px;
    color: #fff;
    opacity: 1 !important;
}

.avatar-upload-hint {
    font-size: 12px;
    color: #6b7a8d;
    font-weight: 600;
}

.avatar-upload-input {
    display: none;
}

/* ── Aceite de termos ── */
.login-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 13px;
    color: #3a4a5a;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.4;
}

.login-check input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #0055a4;
    width: 16px;
    height: 16px;
}

.login-check a {
    color: #0055a4;
    font-weight: 600;
    text-decoration: none;
}

.login-check a:hover { text-decoration: underline; }

@media (max-width: 520px) {
    .login-card        { padding: 28px 20px; }
    .login-row         { flex-direction: column; gap: 0; }
}
