/*
 * Tela de login. Depende de tokens.css.
 * FUNDO: coloque a sua imagem em assets/images/login.jpg (ou login.png), mesmos nomes dos outros projetos.
 * Sem imagem, aparece o degradê azul de reserva. Recomendado: 1920x1080 ou maior, JPG até ~400 KB.
 */

body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    /* camadas: sombra escura por cima, depois a imagem (se existir) e, por fim, o degradê de reserva */
    background:
        linear-gradient(rgba(13, 22, 48, .55), rgba(13, 22, 48, .55)),
        url("../images/login.jpg") center / cover no-repeat,
        url("../images/login.png") center / cover no-repeat,
        linear-gradient(135deg, #0d1630 0%, #1b2f8f 55%, #375efb 100%);
    background-attachment: fixed;
}

.login-back {
    position: fixed;
    top: 18px;
    left: 20px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    font-size: var(--fs-small);
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(6px);
}
.login-back:hover { background: rgba(255, 255, 255, .26); }

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 38px 34px 30px;
    background: rgba(255, 255, 255, .96);
    border-radius: var(--radius-lg);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .4);
    backdrop-filter: blur(10px);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    text-decoration: none;
}
.login-brand__t, .login-brand .brand__t { white-space: nowrap; }
.login-brand .brand__t > span { color: var(--blue); }

.login-card h1 { margin-bottom: 8px; text-align: center; font-size: var(--fs-display); font-weight: 800; }
.login-hint { margin-bottom: 26px; text-align: center; color: var(--text-soft); }

.login-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--rose-soft);
    color: var(--rose);
    font-size: var(--fs-small);
    line-height: 1.45;
}

.login-providers { display: grid; gap: 12px; }

.provider-button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line-bold);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--text);
    font: 700 var(--fs-body)/1.2 var(--font);
    text-decoration: none;
    transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast);
}
a.provider-button:hover, a.provider-button:focus-visible {
    border-color: var(--blue);
    box-shadow: 0 10px 26px var(--blue-glow);
    transform: translateY(-1px);
}
.provider-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; }
.provider-text { flex: 1; text-align: center; margin-right: 28px; }
.provider-soon { margin-left: -20px; font-size: var(--fs-caption); font-weight: 600; color: var(--text-mute); }
.provider-button.is-disabled { opacity: .55; cursor: not-allowed; }

.login-note { margin-top: 22px; text-align: center; font-size: var(--fs-small); color: var(--text-mute); }

@media (max-width: 480px) {
    .login-card { padding: 30px 22px 24px; }
}
