/*
 * login.css — Daimon v4.0
 * Painel esquerdo: azul escuro (#1A3A52) com círculos decorativos amarelos sólidos.
 * Tipografia: branco para corpo, amarelo para destaques.
 * Steps: cascata com recuo progressivo e tamanho decrescente.
 * Painel direito: off-white, costurado ao esquerdo por borda amarela.
 */


/* =========================================
   1. VARIÁVEIS
   ========================================= */
   :root {
    --yellow:        #FFE01B;
    --yellow-dark:   #F4D000;
    --yellow-hover:  #FFE948;
    --yellow-gold:   #D4B800;

    --blue-deep:     #1A3A52;
    --blue-mid:      #244f6e;

    --bg-page:       #FFFDF5;
    --text-main:     #2D3436;
    --muted:         #6c757d;
    --border-light:  #E9ECEF;

    --font-title:    'Montserrat Alternates', sans-serif;
    --font-body:     'Archivo', sans-serif;

    --transition:    all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    background: var(--bg-page);
    color: var(--text-main);
    overflow: hidden;
}

::selection {
    background: var(--yellow);
    color: var(--blue-deep);
}


/* =========================================
   2. LAYOUT
   ========================================= */
.login-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}


/* =========================================
   3. PAINEL ESQUERDO — azul com círculos amarelos sólidos
   ========================================= */
.login-left {
    width: 44%;
    flex-shrink: 0;
    background-color: var(--blue-deep);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 44px;
    position: relative;
    overflow: hidden;
}

/* Círculo grande — topo direito, amarelo sólido */
.login-left::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--yellow);
    opacity: 0.18;
    pointer-events: none;
}

/* Círculo menor — base esquerda, amarelo sólido */
.login-left::after {
    content: '';
    position: absolute;
    bottom: -70px;
    left: -70px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--yellow);
    opacity: 0.12;
    pointer-events: none;
}


/* ── Brand ── */
.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.brand-circle {
    width: 40px;
    height: 40px;
    background: var(--yellow);
    color: var(--blue-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    font-family: var(--font-title);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.20);
}

.brand-name {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}


/* ── Corpo ── */
.left-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
    position: relative;
    z-index: 1;
}

.left-tagline {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    font-feature-settings: "salt" on, "ss01" on;
    -webkit-font-feature-settings: "salt" on, "ss01" on;
}

/* "entrega" em amarelo — destaque natural sobre azul */
.left-tagline .accent {
    color: var(--yellow);
}

.left-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    margin-bottom: 28px;
    max-width: 340px;
}


/* ── Steps em cascata ── */
.steps-eyebrow {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
}

.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/*
 * Cascata progressiva: cada item recua 6px a mais e encolhe levemente.
 * Cria a sensação de profundidade e hierarquia sem poluir.
 * Font-size também decresce sutilmente do 1º ao 8º passo.
 */
.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(255, 255, 255, 0.10);
    border-radius: 6px;
    padding: 6px 10px;
    transition: none; /* sem hover — puramente informativo */
}

.step-item:nth-child(1) { margin-left: 0px;  font-size: 12.5px; opacity: 1.00; }
.step-item:nth-child(2) { margin-left: 6px;  font-size: 12.0px; opacity: 0.95; }
.step-item:nth-child(3) { margin-left: 12px; font-size: 11.5px; opacity: 0.90; }
.step-item:nth-child(4) { margin-left: 18px; font-size: 11.0px; opacity: 0.85; }
.step-item:nth-child(5) { margin-left: 24px; font-size: 10.5px; opacity: 0.80; }
.step-item:nth-child(6) { margin-left: 30px; font-size: 10.0px; opacity: 0.75; }
.step-item:nth-child(7) { margin-left: 36px; font-size:  9.5px; opacity: 0.70; }
.step-item:nth-child(8) { margin-left: 42px; font-size:  9.0px; opacity: 0.65; }

.step-num {
    width: 18px;
    height: 18px;
    background: var(--yellow);
    color: var(--blue-deep);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-title);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 0 var(--yellow-gold);
}

.step-label {
    color: rgba(255, 255, 255, 0.80);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ── Rodapé ── */
.left-footer {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.22);
    position: relative;
    z-index: 1;
}


/* =========================================
   4. PAINEL DIREITO — formulário
   ========================================= */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 48px 72px;
    background: var(--bg-page);
    overflow-y: auto;
    border-left: 3px solid var(--yellow-dark);
}

.login-card {
    width: 100%;
    max-width: 420px;
}


/* ── Cabeçalho ── */
.form-header {
    margin-bottom: -6px;
}

.form-header h2 {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 400;
    color: var(--blue-deep);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
    font-feature-settings: "salt" on, "ss01" on, "ss02" on;
    -webkit-font-feature-settings: "salt" on, "ss01" on, "ss02" on;

}

.form-header p {
    font-size: 13.5px;
    color: var(--muted);
}


/* =========================================
   5. ALERTAS
   ========================================= */
.alert-mel {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 13px;
    margin-bottom: 20px;
}

.alert-mel i {
    font-size: 15px;
    margin-top: 1px;
    flex-shrink: 0;
}

.alert-mel--danger {
    background: #fff0f0;
    border: 1px solid #f5c2c2;
    color: #a32d2d;
}

.alert-mel--info {
    background: #fffce8;
    border: 1px solid var(--yellow-dark);
    color: var(--blue-deep);
}


/* =========================================
   6. CAMPOS
   ========================================= */
.field-group {
    margin-bottom: 12px;
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--blue-deep);
    margin-bottom: 7px;
}

.field-input {
    width: 100%;
    height: 46px;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    font-family: var(--font-body);
    background: #fff;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.field-input:hover {
    border-color: #c8d0d8;
}

.field-input:focus {
    border-color: var(--blue-deep);
    box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.10);
}

.field-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.08);
}

.field-input::placeholder {
    color: #adb5bd;
}

.field-error {
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .field-input {
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    font-size: 16px;
    line-height: 1;
    transition: color 0.15s;
}

.toggle-password:hover {
    color: var(--blue-deep);
}


/* =========================================
   7. OPÇÕES
   ========================================= */
.row-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--blue-deep);
    cursor: pointer;
}

.remember-me span {
    font-size: 13px;
    color: var(--muted);
}

.forgot-link {
    font-size: 13px;
    color: var(--blue-deep);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.forgot-link:hover {
    border-bottom-color: var(--blue-deep);
}

.forgot-link--disabled {
    color: var(--muted);
    font-weight: 400;
    cursor: default;
    border-bottom: none;
    opacity: 0.55;
    pointer-events: none;
}


/* =========================================
   8. BOTÃO PRINCIPAL
   ========================================= */
.btn-login {
    width: 100%;
    height: 48px;
    background: linear-gradient(180deg, var(--yellow-hover) 0%, var(--yellow) 55%, var(--yellow-dark) 100%);
    color: var(--blue-deep);
    font-weight: 700;
    font-size: 14.5px;
    font-family: var(--font-body);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    box-shadow: 0 2px 0 var(--yellow-gold), 0 4px 10px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    margin-bottom: 24px;
}

.btn-login:hover {
    background: linear-gradient(180deg, #FFF470 0%, var(--yellow-hover) 55%, var(--yellow) 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 0 var(--yellow-gold), 0 6px 14px rgba(0,0,0,0.13);
}

.btn-login:active {
    background: linear-gradient(180deg, var(--yellow-dark) 0%, var(--yellow) 100%);
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--yellow-gold), inset 0 2px 4px rgba(0,0,0,0.10);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 0 var(--yellow-gold);
}

.btn-login .spinner-border {
    width: 15px;
    height: 15px;
    border-width: 2px;
    color: var(--blue-deep);
}


/* =========================================
   9. RODAPÉ DO FORMULÁRIO
   ========================================= */
.form-footer {
    text-align: center;
    font-size: 12px;
    color: #adb5bd;
    line-height: 1.7;
    margin-top: 4px;
}

.form-footer a {
    color: var(--blue-deep);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.form-footer a:hover {
    border-bottom-color: var(--blue-deep);
}


/* =========================================
   10. RESPONSIVIDADE
   ========================================= */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 36px 24px;
        align-items: flex-start;
        padding-top: 60px;
        border-left: none;
    }

    .login-card {
        max-width: 100%;
        max-width: 460px;
    }
}