/* =========================================================
   AUTH PAGES (Login + Register)
   Parent: .auth-page   |   Themes: .auth-login, .auth-register
   Units: px only
========================================================= */

/* ---------- Themes ---------- */
.auth-login,
.auth-register {
    --primary: #be5b22;
    --primary-dark: #a84917;
    --accent: #f2a06f;
    --ring: rgba(190, 91, 34, .12);
    --page-bg: #f6f3f0;
    --brand-bg: linear-gradient(145deg, #21150f 0%, #2c1b12 50%, #160f0b 100%);
}

/* ---------- Page ---------- */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
    background: var(--page-bg);
    color: #1f2937;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--ring);
    pointer-events: none;
}

.auth-page::before { width: 420px; height: 420px; top: -210px; right: -170px; }
.auth-page::after  { width: 340px; height: 340px; bottom: -170px; left: -140px; }

.auth-page button,
.auth-page input { font-family: inherit; }

/* ---------- Card ---------- */
.auth-page .auth-card {
    width: 100%;
    max-width: 1040px;
    min-height: 620px;
    display: grid;
    grid-template-columns: 44% 56%;
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .14), 0 8px 25px rgba(15, 23, 42, .05);
}

/* ---------- Brand panel ---------- */
.auth-page .auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px 38px;
    overflow: hidden;
    color: #fff;
    background: var(--brand-bg);
}

.auth-page .auth-brand::before,
.auth-page .auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    pointer-events: none;
}

.auth-page .auth-brand::before { width: 380px; height: 380px; top: -190px; right: -160px; }
.auth-page .auth-brand::after  { width: 280px; height: 280px; bottom: -160px; left: -130px; }

.auth-page .brand-top,
.auth-page .brand-footer { position: relative; z-index: 2; }

.auth-page .brand-logo { display: flex; justify-content: center; margin-bottom: 30px; }

.auth-page .brand-logo img {
    width: 100px;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.auth-page .brand-body { text-align: center; }

.auth-page .brand-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    background: rgba(255, 255, 255, .08);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.auth-page .brand-body h2 {
    margin-bottom: 14px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.6px;
}

.auth-page .brand-body h2 span { color: var(--accent); }

.auth-page .brand-body p {
    max-width: 320px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.75;
}

.auth-page .brand-features { display: grid; gap: 12px; margin-top: 30px; }

.auth-page .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .88);
    font-size: 13px;
}

.auth-page .feature-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, .12);
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.auth-page .brand-footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .5);
    text-align: center;
    font-size: 11px;
}

/* ---------- Form panel ---------- */
.auth-page .auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 55px;
}

.auth-page .auth-form-wrap { width: 100%; max-width: 410px; }

.auth-page .form-head { margin-bottom: 28px; }

.auth-page .form-head .eyebrow {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.auth-page .form-head h1 {
    margin-bottom: 8px;
    color: #111827;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.7px;
}

.auth-page .form-head p { color: #6b7280; font-size: 13px; line-height: 1.6; }

/* ---------- Alert ---------- */
.auth-page .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.5;
}

.auth-page .auth-alert b {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fee2e2;
    font-size: 12px;
}

/* ---------- Fields ---------- */
.auth-page .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.auth-page .form-group { margin-bottom: 17px; }

.auth-page .form-group label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
}

.auth-page .form-group label i { color: var(--primary); font-style: normal; }

.auth-page .input-wrap { position: relative; }

.auth-page .input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    background: #f9fafb;
    color: #111827;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.auth-page .input::placeholder { color: #a1a1aa; }
.auth-page .input:hover { border-color: #cbd5e1; background: #fff; }

.auth-page .input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--ring);
}

.auth-page .has-icon .input { padding-left: 42px; }
.auth-page .has-toggle .input { padding-right: 62px; }

.auth-page .input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
}

.auth-page .toggle-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 5px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.auth-page .toggle-btn:hover { background: var(--ring); }

/* ---------- Options ---------- */
.auth-page .form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.auth-page .remember {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
}

.auth-page .remember input { width: 14px; height: 14px; accent-color: var(--primary); }

.auth-page .link { color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-page .link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.auth-page .btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.auth-page .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 10px 22px var(--ring);
}

.auth-page .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px var(--ring); }
.auth-page .btn-primary:active { transform: translateY(0); }
.auth-page .btn-primary:disabled { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }

.auth-page .btn-outline {
    margin-top: 14px;
    border-color: var(--primary);
    background: #fff;
    color: var(--primary);
}

.auth-page .btn-outline:hover { background: var(--ring); }

/* ---------- Password strength / match ---------- */
.auth-page .strength { margin-top: 8px; }

.auth-page .strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 4px; }

.auth-page .strength-bars span { border-radius: 10px; background: #e5e7eb; transition: background .25s; }
.auth-page .strength-bars span.on { background: var(--primary); }

.auth-page .strength-text { margin-top: 5px; color: #9ca3af; font-size: 11px; font-weight: 600; }
.auth-page .strength[data-level="1"] .strength-text { color: #c23d25; }
.auth-page .strength[data-level="2"] .strength-text { color: var(--primary); }
.auth-page .strength[data-level="3"] .strength-text { color: #a45a24; }
.auth-page .strength[data-level="4"] .strength-text { color: #23834b; }

.auth-page .match-msg { display: none; margin-top: 6px; font-size: 11px; font-weight: 700; }
.auth-page .match-msg.ok  { display: block; color: #23834b; }
.auth-page .match-msg.bad { display: block; color: #c23d25; }

/* ---------- Footer note ---------- */
.auth-page .form-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef0f3;
    color: #9ca3af;
    text-align: center;
    font-size: 12px;
}

.auth-page .form-foot a { color: var(--primary); font-weight: 800; text-decoration: none; }
.auth-page .form-foot a:hover { text-decoration: underline; }
.auth-page .form-foot strong { color: #6b7280; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .auth-page .auth-card { max-width: 560px; grid-template-columns: 1fr; }
    .auth-page .auth-brand { padding: 32px 28px; }
    .auth-page .brand-logo { margin-bottom: 18px; }
    .auth-page .brand-body h2 { font-size: 26px; }
    .auth-page .brand-features { margin-top: 22px; gap: 10px; }
    .auth-page .brand-footer { margin-top: 22px; }
    .auth-page .auth-panel { padding: 38px 32px; }
}

@media (max-width: 620px) {
    .auth-page { padding: 15px 10px; align-items: flex-start; }
    .auth-page .auth-card { border-radius: 18px; }
    .auth-page .auth-brand { padding: 26px 20px; }
    .auth-page .brand-logo img { width: 80px; }
    .auth-page .feature { padding: 10px 12px; font-size: 12px; }
    .auth-page .brand-body h2 { font-size: 23px; }
    .auth-page .brand-body p { font-size: 12px; }
    .auth-page .auth-panel { padding: 30px 20px; }
    .auth-page .form-head h1 { font-size: 26px; }
    .auth-page .form-row { grid-template-columns: 1fr; gap: 0; }
}


/* Noway checkout sign-in improvement — 16 October 2026.
   Keep customer actions above decorative branding on small screens. */
body:has(.auth-page){margin:0}
.auth-page.nw-auth-simple{align-items:flex-start;padding-top:32px}
.auth-page.nw-auth-simple .auth-card{grid-template-columns:minmax(0,1fr);max-width:540px;min-height:0}
.auth-page.nw-auth-simple .auth-panel{padding:28px 32px;min-width:0}
.auth-page.nw-auth-simple .auth-form-wrap{max-width:none;min-width:0}
.auth-page .nw-auth-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px}
.auth-page .nw-auth-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:#182536;font-size:14px;font-weight:800;min-width:0}
.auth-page .nw-auth-logo img{display:block;width:44px;height:44px;object-fit:contain;border-radius:9px}
.auth-page .nw-auth-top>.link{white-space:nowrap;min-height:44px;display:flex;align-items:center}
.auth-page.nw-auth-simple .form-head{margin-bottom:18px}
.auth-page.nw-auth-simple .form-head h1{font-size:28px}
.auth-page .nw-auth-steps{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 20px;font-size:12px;color:#657080}
.auth-page .nw-auth-steps li{display:flex;align-items:center;gap:6px}
.auth-page .nw-auth-steps span{display:grid;place-items:center;width:23px;height:23px;flex-shrink:0;background:#edf0f4;border-radius:50%;font-weight:700}
.auth-page .nw-auth-steps [aria-current]{color:var(--primary);font-weight:700}
.auth-page .nw-auth-steps [aria-current] span{background:var(--primary);color:#fff}
.auth-page .nw-auth-google{min-width:0}
.auth-page .nw-auth-create{margin:14px 0 16px;min-height:50px;height:auto;padding:12px;text-align:center;line-height:1.4}
.auth-page .nw-auth-password{border:1px solid #dce2e9;border-radius:10px;background:#fff}
.auth-page .nw-auth-password>summary{padding:15px;min-height:50px;font-size:13px;font-weight:700;line-height:1.5;cursor:pointer;color:#374151}
.auth-page .nw-auth-password[open]>summary{border-bottom:1px solid #edf0f4}
.auth-page .nw-auth-password form{padding:18px 15px}
.auth-page .nw-auth-password .input{font-size:16px}
.auth-page .nw-auth-password .form-options{gap:12px;flex-wrap:wrap}
.auth-page .nw-auth-password .form-options a{min-height:36px;display:flex;align-items:center}
.auth-page .nw-auth-password summary:focus-visible,.auth-page .btn:focus-visible,.auth-page a:focus-visible{outline:3px solid #477dc1;outline-offset:3px}
.auth-page.nw-auth-simple .form-foot{margin-top:18px;padding-top:16px;line-height:1.7;color:#657080}
.auth-page.nw-auth-simple .form-foot a{display:block;margin-top:5px}
@media(max-width:900px){
 .auth-page .auth-card{min-height:0}
 .auth-page .auth-brand{display:none}
 .auth-page .auth-panel{align-items:flex-start;padding:24px}
 .auth-page .input{font-size:16px}
}
@media(max-width:620px){
 .auth-page,.auth-page.nw-auth-simple{padding:12px 10px;min-height:100svh}
 .auth-page.nw-auth-simple .auth-panel{padding:20px 18px}
 .auth-page .nw-auth-top{margin-bottom:20px}
 .auth-page.nw-auth-simple .form-head h1{font-size:25px}
 .auth-page .nw-auth-logo{font-size:12px;gap:8px}
 .auth-page .nw-auth-logo img{width:36px;height:36px}
 .auth-page .nw-auth-steps{font-size:11px;gap:5px}
 .auth-page .nw-auth-steps li{gap:5px}
}
@media(prefers-reduced-motion:reduce){
 .auth-page .input,.auth-page .btn,.auth-page .strength-bars span{transition:none}
}


/* One-page email access: name is collected on the delivery step. */
.auth-page.nw-auth-quick{padding-top:24px}
.auth-page.nw-auth-quick .auth-card{max-width:500px}
.auth-page.nw-auth-quick .auth-panel{padding:24px 28px}
.auth-page.nw-auth-quick .nw-auth-top{margin-bottom:16px}
.auth-page.nw-auth-quick .nw-auth-logo img{width:36px;height:36px}
.auth-page.nw-auth-quick .form-head{margin-bottom:16px}
.auth-page.nw-auth-quick .form-head h1{font-size:27px}
.auth-page .nw-auth-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#f0f2f5;border-radius:10px;margin:12px 0 16px}
.auth-page .nw-auth-modes a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;color:#495468;font-size:14px;font-weight:700;text-decoration:none;border:1px solid transparent;border-radius:8px}
.auth-page .nw-auth-modes a[aria-current]{background:#fff;color:#9d481c;border-color:#e7d8cc;box-shadow:0 2px 5px #1825360a}
.auth-page.nw-auth-quick .input{font-size:16px;height:48px}
.auth-page.nw-auth-quick .form-group{margin-bottom:14px}
.auth-page.nw-auth-quick .form-group label{font-size:13px}
.auth-page.nw-auth-quick .toggle-btn{min-height:42px;min-width:48px;font-size:12px}
.auth-page .nw-auth-help{font-size:12px;line-height:1.5;color:#586577;margin:0 0 14px}
.auth-page .nw-auth-reset{text-align:right;margin:10px 0 4px}
.auth-page .nw-auth-reset a{display:inline-flex;align-items:center;min-height:36px}
.auth-page .nw-auth-legal{font-size:11px;line-height:1.6;text-align:center;color:#657080}
.auth-page .nw-auth-legal a{color:#9d481c}
.auth-page .nw-auth-notice{padding:12px;margin-bottom:14px;border-radius:10px;background:#eef8f2;color:#18583b;line-height:1.5;font-size:13px}
.auth-page.nw-auth-quick .form-foot{margin-top:12px;padding-top:12px;font-size:11px}
@media(max-width:620px){
 .auth-page.nw-auth-quick{padding:10px 8px}
 .auth-page.nw-auth-quick .auth-panel{padding:18px 16px}
 .auth-page.nw-auth-quick .form-head h1{font-size:25px}
}
