.il-auth-body { margin: 0; font-family: var(--pl-font, 'Inter', system-ui, sans-serif); }

.il-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 25% 75%;
}
.il-auth--reset { grid-template-columns: 30% 70%; }

/* ── Colunas: cor depende do papel (marca vs formulário), não da posição ── */
.il-auth__col--dark {
    background: #161616; color: #fff;
    display: flex; flex-direction: column;
}
.il-auth__col--light {
    background: #eeeeee; color: #1a1a1a;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.il-auth__col--light::before {
    content: ''; position: absolute; inset: 0;
    background-image: var(--il-auth-bg-url);
    background-size: cover; background-position: center;
    opacity: .15; z-index: 0; pointer-events: none;
}
.il-auth__col--light > * { position: relative; z-index: 1; }

/* ── Bloco de marca (logo, título, rodapé) — ocupa a coluna toda ── */
.il-auth__brand { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.il-auth__brand-top { display: flex; align-items: center; justify-content: space-between; }
.il-auth__back { color: inherit; text-decoration: none; display: inline-flex; width: 24px; height: 24px; opacity: .85; }
.il-auth__back:hover { opacity: 1; }
.il-auth__logo-wrap img { max-height: 40px; width: auto; display: block; }
.il-auth__headline { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 800; line-height: 1.2; margin: 0 0 10px; }
.il-auth__headline span { color: var(--il-brand, #c9a84c); }
.il-auth__footer { font-size: 12px; opacity: .65; line-height: 1.7; }
.il-auth__footer a { color: inherit; }

/* ── Bloco de formulário ── */
.il-auth__form-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px; }
.il-auth__form { width: 100%; max-width: 420px; }
.il-auth__form--wide { max-width: 800px; }
.il-auth__form--login { max-width: 600px; }

.il-auth__lead { font-size: 15px; font-weight: 700; margin: 0 0 22px; line-height: 1.4; }
.il-auth__title { font-family: 'Poppins', sans-serif; font-size: 30px; font-weight: 900; margin: 0 0 6px; }
.il-auth__subtitle { font-size: 14px; opacity: .8; margin: 0 0 28px; }
.il-auth__subtitle a { color: var(--il-brand, #c9a84c); text-decoration: underline; }

.il-auth-field { margin-bottom: 16px; }
.il-auth-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.il-auth-field input {
    width: 100%; box-sizing: border-box;
    padding: 14px 16px; border: none; border-radius: 10px;
    font-size: 15px; font-family: inherit; color: #1a1a1a; background: #fff;
}
.il-auth__col--light .il-auth-field input { border: 1.5px solid #e2e2e2; }
.il-auth-field input:focus { outline: 2px solid var(--il-brand, #c9a84c); outline-offset: 1px; }
.il-auth-field small { display: block; margin-top: 5px; font-size: 11.5px; opacity: .65; }
.il-auth-row2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.il-auth-row2.il-auth-row2--split { grid-template-columns: 1fr 1fr; }

.il-auth-pw-wrap { position: relative; }
.il-auth-pw-wrap input { padding-right: 46px; }
.il-auth-pw-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 34px; height: 34px; border: none; background: transparent; cursor: pointer;
    color: #9ca3af; display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.il-auth-pw-toggle:hover { color: #555; background: rgba(0,0,0,.05); }
.il-auth-pw-toggle svg { pointer-events: none; }

.il-auth-field input.is-invalid { outline: 2px solid #dc2626; outline-offset: 1px; }
.il-auth-field__hint { font-size: 11.5px; margin-top: 5px; }
.il-auth-field__hint--error { color: #dc2626; }
.il-auth-field__hint--ok { color: #16a34a; }

.il-auth-check { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; opacity: .85; line-height: 1.5; margin: 18px 0; }
.il-auth-check input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--il-brand, #c9a84c); }
.il-auth-check a { color: inherit; text-decoration: underline; }

.il-auth-error {
    display: none; align-items: flex-start; gap: 8px;
    background: rgba(220,38,38,.1); border: 1px solid rgba(220,38,38,.35); color: #f87171;
    font-size: 13px; border-radius: 8px; padding: 10px 12px; margin-bottom: 16px; line-height: 1.4;
}
.il-auth__col--light .il-auth-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

.il-auth__btn {
    width: 100%; box-sizing: border-box;
    background: var(--il-brand, #c9a84c); color: #1a1a1a;
    border: none; border-radius: 30px; padding: 15px; font-size: 15px; font-weight: 800;
    cursor: pointer; font-family: inherit; position: relative;
    transition: opacity .15s; margin-top: 4px;
}
.il-auth__btn:hover { opacity: .9; }
.il-auth__btn:disabled { opacity: .6; cursor: default; }
.il-auth__btn--outline { background: transparent; border: 1.5px solid currentColor; color: inherit; }

.il-auth__divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:#9ca3af;font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.il-auth__divider::before,.il-auth__divider::after{content:'';flex:1;height:1px;background:#e5e7eb}
.il-auth__register-cta{text-align:center}
.il-auth__register-cta p{font-size:14px;color:#1a1a1a;opacity:.85;margin:0 0 12px}
.il-auth__register-cta .il-auth__btn--outline{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;width:auto;padding:13px 28px;border-color:#1a1a1a;color:#1a1a1a;font-weight:700}
.il-auth__register-cta .il-auth__btn--outline:hover{background:#1a1a1a;color:#fff}
.il-auth__btn--b2b { background: #0a2342; color: #fff; margin-top: 22px; }
.il-auth__btn.is-loading { color: transparent; }
.il-auth__btn.is-loading::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px;
    margin: -9px 0 0 -9px; border-radius: 50%;
    border: 2.5px solid rgba(0,0,0,.25); border-top-color: rgba(0,0,0,.7);
    animation: il-auth-spin .7s linear infinite;
}
@keyframes il-auth-spin { to { transform: rotate(360deg); } }

.il-auth-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.il-auth-strength__bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.il-auth__col--light .il-auth-strength__bar { background: #e5e7eb; }
.il-auth-strength__fill { height: 100%; width: 0%; border-radius: 3px; transition: width .25s ease, background .25s ease; }
.il-auth-strength__label { font-size: 11.5px; font-weight: 700; min-width: 46px; text-align: right; }
.il-auth-strength__fill--weak   { background: #dc2626; }
.il-auth-strength__fill--medium { background: #d97706; }
.il-auth-strength__fill--strong { background: #16a34a; }
.il-auth-strength__label--weak   { color: #f87171; }
.il-auth-strength__label--medium { color: #fbbf24; }
.il-auth-strength__label--strong { color: #4ade80; }

.il-auth__links { text-align: center; margin-top: 18px; font-size: 13px; }
.il-auth__links a { color: inherit; text-decoration: underline; cursor: pointer; opacity: .8; }
.il-auth__links a:hover { opacity: 1; }

.il-auth__links--buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.il-auth-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 20px; font-size: 12px; font-weight: 700;
    text-decoration: none !important; cursor: pointer; opacity: 1;
    transition: opacity .15s, transform .1s; border: none;
}
.il-auth-pill:hover { opacity: .85; transform: translateY(-1px); }
.il-auth-pill svg { flex-shrink: 0; }
.il-auth-pill--gold { background: var(--il-brand, #c9a84c); color: #1a1a1a; }
.il-auth-pill--black { background: #1a1a1a !important; color: #fff !important; }
.il-auth-pill--black:hover { background: #3a3a3a !important; opacity: 1; }
.il-auth-pill--muted { background: #e8e8e8; color: #444; }
.il-auth__col--dark .il-auth-pill--muted { background: rgba(255,255,255,.12); color: #fff; }

.il-auth__about { font-size: 12.5px; line-height: 1.7; opacity: .7; margin-top: 28px; }

/* ── Produtos recomendados (só no login) ── */
.il-auth__products { margin-top: 150px; width: calc(100% + 400px); max-width: 1200px; margin-left: -200px; }
.il-auth__products .il-cart-rel-item__add { background: #dc2626; }
.il-auth__products .il-cart-rel-item__add:hover { background: #b91c1c; }

/* Em tablet (inclui vertical) a "quebra" de largura não cabe bem no
   ecrã e corta os produtos — aqui ocupa só o espaço disponível. */
@media (max-width: 1300px) and (min-width: 901px) {
    .il-auth__products { width: 100%; max-width: 100%; margin-left: 0; }
}

/* ── Aba/painel lateral para o código (drawer) ── */
.il-auth-drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9997;
    opacity: 0; visibility: hidden; transition: opacity .25s ease;
}
.il-auth-drawer-overlay.is-open { opacity: 1; visibility: visible; }

.il-auth-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 92vw;
    background: #fff; z-index: 9998; padding: 40px 36px;
    box-shadow: -10px 0 30px rgba(0,0,0,.2);
    transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.9,.25,1);
    overflow-y: auto;
}
.il-auth-drawer.is-open { transform: translateX(0); }
.il-auth-drawer__close {
    position: absolute; top: 20px; right: 20px; background: #f5f5f5; border: none;
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer; color: #333;
    display: flex; align-items: center; justify-content: center;
}
.il-auth-drawer__close:hover { background: #ececec; }
.il-auth-drawer h2 { font-size: 22px; font-weight: 900; color: #1a1a1a; margin: 10px 0 8px; }
.il-auth-drawer p { font-size: 14px; color: #555; margin: 0 0 24px; line-height: 1.5; }
.il-auth-drawer p strong { color: #1a1a1a; }

.il-auth-otp { display: flex; gap: 10px; margin-bottom: 24px; }
.il-auth-otp__box {
    width: 100%; aspect-ratio: 1/1; text-align: center; font-size: 22px; font-weight: 800;
    border: 1.5px solid #d1d5db; border-radius: 12px; color: #1a1a1a;
    font-family: inherit; box-sizing: border-box;
}
.il-auth-otp__box:focus { outline: none; border-color: var(--il-brand, #c9a84c); }

/* ── Responsivo ── */
@media (max-width: 900px) {
    .il-auth { grid-template-columns: 1fr; }
    .il-auth__brand { padding: 24px; min-height: 200px; }
    .il-auth__headline { font-size: 22px; }
    .il-auth__title { font-size: 22px; }
    .il-auth__subtitle { font-size: 13px; margin-bottom: 20px; }
    .il-auth__form-wrap { padding: 32px 28px 60px; }
    .il-auth-row2 { grid-template-columns: 1fr; }
    .il-auth__products { width: 100%; max-width: 100%; margin-left: 0; }
    .il-auth-drawer { width: 100vw; max-width: 100vw; padding: 30px 22px; }
    .il-auth-otp__box { font-size: 18px; }
}

