/* ============================================================
   MHDCommerce — Modal de Login
   Arquivo: wwwroot/css/login.css
   Carregar DEPOIS de site.css
   ============================================================ */

.login-overlay {
    position: fixed; inset: 0; background: rgba(20,30,25,.55); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1000;
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.login-overlay.open { opacity: 1; pointer-events: all; }

.login-modal {
    background: var(--white); border-radius: var(--radius-xl); width: 100%; max-width: 420px;
    overflow-y: auto; max-height: 92vh; box-shadow: 0 24px 70px rgba(0,0,0,.3);
    transform: translateY(14px) scale(.98); transition: transform .2s;
}
.login-overlay.open .login-modal { transform: translateY(0) scale(1); }

.login-head { padding: 28px 32px 0; position: relative; }
.login-close {
    position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border: none;
    background: var(--bg); border-radius: 99px; cursor: pointer; font-size: 17px; color: var(--text-2);
    display: flex; align-items: center; justify-content: center;
}
.login-close:hover { background: var(--border); }
.login-logo-mark {
    width: 46px; height: 46px; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: 'Sora', sans-serif; font-size: 21px; font-weight: 700; margin-bottom: 16px;
}
.login-title { font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 700; line-height: 1.2; }
.login-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }

.login-body { padding: 24px 32px 32px; }

/* Mensagem de erro */
.login-erro {
    background: #fdecec; border: 1px solid #f5c2c2; color: #c0392b;
    border-radius: var(--radius-md); padding: 11px 14px; font-size: 13px; font-weight: 500;
    margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}

/* Campos */
.field { margin-bottom: 16px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; display: block; }
.field-input-wrap { position: relative; display: flex; align-items: center; }
.field-icon { position: absolute; left: 14px; color: var(--muted); display: flex; pointer-events: none; }
.field-icon svg { width: 18px; height: 18px; }
.field-input {
    width: 100%; height: 50px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
    padding: 0 14px 0 44px; font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--text);
    outline: none; transition: border-color .15s, box-shadow .15s; background: var(--white);
}
.field-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.field-input::placeholder { color: #bbb; }
.field-input.erro { border-color: var(--red); }
.field-toggle { position: absolute; right: 12px; background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; display: flex; }
.field-toggle svg { width: 19px; height: 19px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 5px; }

/* Linha lembrar / esqueci */
.login-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.remember { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.remember input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.forgot { font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
.forgot:hover { text-decoration: underline; }

/* Botão entrar */
.btn-entrar {
    width: 100%; height: 52px; background: var(--brand); color: #fff; border: none; border-radius: var(--radius-md);
    font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer;
    transition: background .15s, transform .1s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-entrar:hover { background: var(--brand-mid); }
.btn-entrar:active { transform: scale(.99); }
.btn-entrar:disabled { opacity: .7; cursor: progress; }

/* Divisor */
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

/* Botões sociais */
.social-btns { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
    width: 100%; height: 50px; border-radius: var(--radius-md); border: 1.5px solid var(--border);
    background: var(--white); font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--text);
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 11px;
    transition: background .15s, border-color .15s; position: relative;
}
.social-btn:hover:not(:disabled) { background: var(--bg); }
.social-btn:disabled { cursor: default; }
.social-btn svg, .social-btn img { width: 20px; height: 20px; }
.social-btn.apple { background: #000; color: #fff; border-color: #000; }
.social-btn.apple:hover:not(:disabled) { background: #1a1a1a; }
.social-soon {
    position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
    font-size: 10px; font-weight: 700; color: var(--muted); background: var(--bg);
    border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px;
    text-transform: uppercase; letter-spacing: .3px;
}
.social-btn.apple .social-soon { background: #1a1a1a; color: #888; border-color: #333; }

/* Rodapé cadastro */
.login-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-2); }
.login-footer a { color: var(--brand); font-weight: 700; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
