/* ==========================================================================
   BrokerDesk — Estilos das telas de autenticação
   ========================================================================== */

:root {
    --auth-primary: #2563eb;
    --auth-primary-dark: #1d4ed8;
    --auth-bg: #0f172a;
}

* { box-sizing: border-box; }

body.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #1e3a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    color: #0f172a;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, .45);
    padding: 2.25rem 2rem 2rem;
    animation: authFade .4s ease;
}

@keyframes authFade {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand .logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--auth-primary), #7c3aed);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .4);
}

.auth-brand h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: .75rem 0 .15rem;
    letter-spacing: -.02em;
}

.auth-brand p {
    color: #64748b;
    font-size: .9rem;
    margin: 0;
}

.auth-card label {
    font-weight: 600;
    font-size: .85rem;
    color: #334155;
    margin-bottom: .35rem;
}

.auth-input-group {
    position: relative;
    margin-bottom: 1rem;
}

.auth-input-group .bi {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.auth-input-group input {
    width: 100%;
    padding: .72rem .9rem .72rem 2.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}

.auth-input-group input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.auth-toggle-pass {
    left: auto !important;
    right: 12px;
    cursor: pointer;
    pointer-events: auto !important;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: .85rem;
}

.auth-row a { color: var(--auth-primary); text-decoration: none; font-weight: 600; }
.auth-row a:hover { text-decoration: underline; }

.auth-btn {
    width: 100%;
    padding: .8rem;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--auth-primary), var(--auth-primary-dark));
    color: #fff;
    font-weight: 600;
    font-size: .98rem;
    cursor: pointer;
    transition: transform .1s, box-shadow .2s;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
}

.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 99, 235, .45); }
.auth-btn:active { transform: translateY(0); }

.auth-alert {
    padding: .7rem .9rem;
    border-radius: 10px;
    font-size: .86rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}
.auth-alert.error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.auth-alert.success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.auth-alert.warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }

.auth-foot {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .8rem;
    color: #94a3b8;
}
.auth-foot a { color: var(--auth-primary); text-decoration: none; }

.form-check-input { accent-color: var(--auth-primary); }
