/* ============================================================
   ZAK Bazaar Network — vendor auth pages (login / signup / forgot password)
   Reuses the CSS variables + .btn-zak / .zak-card classes from zak-theme.css.
   Load zak-theme.css BEFORE this file.
   ============================================================ */

body{ margin:0; }

/* ── Shared auth chrome ── */
.auth-logo-link{ display:inline-flex; align-items:center; gap:10px; }
.auth-logo-link img{ height:40px; border-radius:8px; }

/* ── Hero-style auth layout (light bg, no split panel; site's own nav sits above it) ── */
.auth-hero-wrap{ background:var(--background); min-height:calc(100vh - 96px); position:relative; overflow:hidden; }
.auth-hero{ max-width:1240px; margin:0 auto; padding:32px 40px 80px; position:relative; z-index:1; }
.auth-hero-copy{ animation: authFadeUp .5s ease both; }
.auth-hero-copy h1{
    margin-top:20px; font-size:clamp(38px,5vw,56px); line-height:1.05;
}
.auth-hero-copy h1 .fg{ color:var(--foreground); display:block; }
.auth-hero-copy h1 .accent{ color:var(--primary); display:block; }
.auth-hero-copy h1.auth-hero-brand{ font-size:clamp(32px,4.5vw,48px); line-height:1.15; }
.auth-hero-brand .w1{ color:var(--secondary); }
.auth-hero-brand .w2{ color:var(--foreground); }
.auth-hero-brand .w3{ color:var(--primary); }
@media (max-width:768px){ .auth-hero{ padding:16px 24px 60px; } }

/* ── No-scroll variant: everything (nav + hero) fits one viewport (login page) ── */
body.auth-noscroll{ height:100vh; overflow:hidden; display:flex; flex-direction:column; }
body.auth-noscroll .zak-navbar{ flex-shrink:0; padding:14px 0; }
body.auth-noscroll .auth-hero-wrap{ flex:1; min-height:0; display:flex; align-items:center; overflow:hidden; }
body.auth-noscroll .auth-hero{ padding-top:28px; padding-bottom:8px; width:100%; }
body.auth-noscroll .auth-brand-block{ margin-top:20px; }
body.auth-noscroll .auth-feature-grid .feature-row{ padding:7px 4px; }
body.auth-noscroll .auth-card{ padding:36px 56px; }
@media (max-width:991.98px){
    body.auth-noscroll{ height:auto; overflow:visible; }
    body.auth-noscroll .auth-hero-wrap{ overflow:visible; }
    body.auth-noscroll .auth-hero-copy{ display:none; }
}
@media (max-width:576px){
    body.auth-noscroll .auth-card{ padding:28px 24px; }
}

/* inline (non-stacked) two-tone heading, for the card title */
.auth-card h2 .fg{ color:var(--foreground); }
.auth-card h2 .r{ color:var(--secondary); }

/* ── Feature list (reintroduced brand content, styled for the light bg) ── */
.auth-brand-block{ margin-top:32px; }
.auth-brand-block .brand-tagline{ font-size:16px; font-weight:700; color:var(--foreground); margin-bottom:20px; }
.auth-feature-grid{ display:flex; flex-direction:column; gap:4px; }
.auth-feature-grid .feature-row{
    display:flex; align-items:center; gap:14px;
    padding:12px 4px; border-bottom:1px solid var(--border);
    transition: transform .2s ease, background-color .2s ease;
    border-radius:10px;
}
.auth-feature-grid .feature-row:last-child{ border-bottom:none; }
.auth-feature-grid .feature-row:hover{ background:rgba(201,53,42,.05); transform:translateX(4px); }
.auth-feature-grid .feature-icon{
    flex:0 0 40px; width:40px; height:40px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    font-size:17px; color:#fff;
}
.auth-feature-grid .feature-row:nth-child(odd) .feature-icon{ background:var(--primary); }
.auth-feature-grid .feature-row:nth-child(even) .feature-icon{ background:var(--secondary); }
.auth-feature-grid .feature-text{ font-size:14.5px; font-weight:500; color:var(--foreground); }

/* ── Decorative accents (reuses the dotted-grid look from the home hero) ── */
.auth-dots{ position:absolute; z-index:0; pointer-events:none; background-image:radial-gradient(currentColor 1.5px,transparent 1.5px); background-size:10px 10px; display:none; }
@media (min-width:992px){ .auth-dots{ display:block; } }
.auth-dots.a{ color:var(--primary); right:6%; top:0; height:120px; width:120px; opacity:.25; }
.auth-dots.b{ color:var(--secondary); left:2%; bottom:6%; height:96px; width:140px; opacity:.3; }

/* ── Remember me ── */
.auth-remember{ display:flex; align-items:center; gap:8px; font-size:13px; color:rgba(20,24,38,.7); }
.auth-remember input{ width:16px; height:16px; accent-color:var(--primary); cursor:pointer; }
.auth-remember label{ cursor:pointer; margin:0; }

@keyframes authFadeUp{
    from{ opacity:0; transform:translateY(14px); }
    to{ opacity:1; transform:translateY(0); }
}
.auth-card{ animation: authFadeUp .5s ease .1s both; }
@media (prefers-reduced-motion: reduce){
    .auth-hero-copy, .auth-card{ animation:none; }
}

/* ── LOGIN: split screen ── */
.auth-shell{ min-height:100vh; display:flex; }
.auth-left {
    width: 46%;
    background: linear-gradient(155deg, var(--secondary) 0%, #0a3d3d 60%, #082e2e 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 50px 40px;
    position: relative; overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 25% 30%, rgba(201,53,42,.35) 0%, transparent 55%),
                radial-gradient(circle at 85% 85%, rgba(224,165,60,.18) 0%, transparent 50%);
}
.auth-left-content { position: relative; z-index: 1; text-align: center; color: #fff; }
.auth-logo-box {
    width: 80px; height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 22px; display: flex; align-items: center; justify-content: center;
    font-size: 38px; margin: 0 auto 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.auth-left h1 { font-family:"Archivo Black",system-ui,sans-serif; font-weight:400; font-size: 30px; margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-left p.tagline { color: rgba(255,255,255,0.78); font-size: 15px; margin-bottom: 36px; }
.auth-feature-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.auth-feature-list li {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,0.88);
    font-size: 14px; font-weight: 500;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.auth-feature-list li:last-child { border-bottom: none; }
.auth-feature-list .fi { font-size: 20px; width: 28px; text-align: center; }

.auth-right {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    background: var(--background);
    padding: 40px 30px;
}
.auth-card {
    background: var(--card);
    border-radius: 24px;
    padding: 48px 56px;
    width: 100%; max-width: 530px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: box-shadow .25s ease;
}
.auth-card:hover { box-shadow: 0 24px 60px -16px rgba(17,107,107,.4); }
.auth-card h2 { font-family:"Archivo Black",system-ui,sans-serif; font-weight:400; font-size: 26px; color: var(--foreground); margin-bottom: 4px; }
.auth-card .subtitle { font-size: 14px; color: rgba(20,24,38,.6); margin-bottom: 28px; }

@media (max-width: 576px) {
    .auth-card { padding: 32px 24px; }
}

@media (max-width: 768px) {
    .auth-left { display: none; }
    .auth-right { background: var(--background); }
    .auth-card { padding: 32px 24px; box-shadow: none; border: none; }
}

/* ── SIGNUP: centered wide card ── */
.signup-hero-wrap { position: relative; overflow: hidden; }
.signup-wrap { width: 100%; max-width: 820px; margin: 0 auto; padding: 8px 16px 36px; position: relative; z-index: 1; }
.signup-header { text-align: center; margin-bottom: 24px; }
.signup-header .logo-box {
    width: 68px; height: 68px;
    background: var(--primary);
    border-radius: 18px; display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 32px; margin-bottom: 14px;
    box-shadow: var(--shadow-red);
}
.signup-header h2 { font-family:"Archivo Black",system-ui,sans-serif; font-weight:400; font-size: 24px; color: var(--foreground); margin-bottom: 4px; }
.signup-header p  { font-size: 14px; color: rgba(20,24,38,.6); margin: 0; }

.signup-card {
    background: var(--card);
    border-radius: 24px;
    padding: 38px 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
}
.auth-section-title {
    font-weight: 700; font-size: 13px; color: var(--secondary);
    text-transform: uppercase; letter-spacing: 1.2px;
    padding-bottom: 8px; border-bottom: 2px solid var(--muted);
    margin-bottom: 18px; margin-top: 10px;
}
.auth-section-title.red{ color: var(--primary); }
.auth-section-title.teal{ color: var(--secondary); }

.signup-header h2 .fg{ color: var(--foreground); }
.signup-header h2 .r{ color: var(--primary); }

/* ── Shared form look for auth pages ── */
.auth-card .form-label,
.signup-card .form-label { font-weight: 600; font-size: 13px; color: #4A5568; margin-bottom: 5px; }
.auth-card .form-control,
.signup-card .form-control,
.signup-card .form-select {
    border: 2px solid var(--border); border-radius: 11px;
    font-size: 14px; padding: 11px 15px;
    font-family: "Inter", system-ui, sans-serif;
    transition: border-color .2s, box-shadow .2s;
}
.auth-card .form-control:focus,
.signup-card .form-control:focus,
.signup-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(201,53,42,0.12);
}
.form-control.is-invalid { border-color: #FC8181; }
.invalid-feedback { font-size: 12px; color: #E53E3E; font-weight: 500; }
/* Corner rounding follows position within the group, so an icon can sit as
   a prefix (email/phone) or a suffix (password show/hide) without breaking. */
.input-group > .form-control,
.input-group > .btn,
.input-group > .input-group-text { border-radius: 0; border: 2px solid var(--border); }
.input-group > :first-child { border-radius: 11px 0 0 11px; }
.input-group > :last-child { border-radius: 0 11px 11px 0; }
.input-group > :only-child { border-radius: 11px; }
.input-group > .form-control:not(:first-child) { border-left: none; }
.input-group > .btn,
.input-group > .input-group-text { background: var(--muted); color: rgba(20,24,38,.55); font-size: 16px; }
.input-group > .input-group-text:not(:last-child) { border-right: none; }
.input-group > .btn:not(:first-child) { border-left: none; }
.input-group .btn:hover { color: var(--primary); }

.auth-divider { text-align: center; color: rgba(20,24,38,.4); font-size: 13px; position: relative; margin: 22px 0; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 38%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }
.auth-link { color: var(--secondary); font-weight: 600; text-decoration: none; }
.auth-link:hover { color: var(--primary); text-decoration: underline; }

.alert-err { background: rgba(201,53,42,.07); border: none; border-left: 4px solid var(--primary); border-radius: 11px; color: #8a1f18; font-size: 13px; font-weight: 500; padding: 12px 16px; margin-bottom: 20px; }
.alert-ok  { background: #D1FAE5; border: none; border-radius: 11px; color: #065F46; font-size: 13px; font-weight: 500; padding: 12px 16px; margin-bottom: 20px; }

.login-link, .signup-foot-link { text-align: center; margin-top: 18px; font-size: 14px; color: rgba(20,24,38,.6); }
.login-link a, .signup-foot-link a { color: var(--secondary); font-weight: 600; text-decoration: none; }
.login-link a:hover, .signup-foot-link a:hover { text-decoration: underline; }

/* Higher specificity than ".signup-foot-link a" / ".login-link a" above,
   so this wins wherever a register/sign-in link opts into it. */
a.register-link { color: var(--primary); font-weight: 700; text-decoration: none; transition: color .2s; }
a.register-link:hover { color: var(--whatsapp-hover); text-decoration: underline; }

.strength-bar { height: 4px; border-radius: 4px; background: var(--border); margin-top: 6px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 4px; transition: width .3s, background .3s; width: 0; }

/* ── Forgot-password code inputs ── */
.otp-inputs { display: flex; gap: 10px; justify-content: center; }
.otp-inputs input {
    width: 48px; height: 56px; text-align: center;
    font-size: 22px; font-weight: 700;
    border: 2px solid var(--border); border-radius: 12px;
    font-family: "Inter", system-ui, sans-serif;
}
.otp-inputs input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,53,42,0.12); outline: none; }

@media (max-width: 576px) {
    .signup-card { padding: 28px 20px; }
}

/* ── Vendor agreement modal content ── */
.agreement-content{ font-size: 13.5px; line-height: 1.75; color: rgba(20,24,38,.8); }
.agreement-content h6{ font-family:"Archivo Black",system-ui,sans-serif; font-weight:400; font-size: 14px; color: var(--primary); margin: 20px 0 8px; }
.agreement-content h6:first-of-type{ margin-top: 4px; }
.agreement-content ul{ padding-left: 20px; margin-bottom: 14px; }
.agreement-content li{ margin-bottom: 4px; }
.agreement-content p{ margin-bottom: 12px; }

/* ── Disclaimer checkbox ── */
.disclaimer-check{ display:flex; align-items:flex-start; gap:10px; font-size:13.5px; color:rgba(20,24,38,.75); }
.disclaimer-check input{ width:17px; height:17px; margin-top:2px; accent-color:var(--primary); cursor:pointer; flex-shrink:0; }
.disclaimer-check label{ cursor:pointer; }
.disclaimer-check .agreement-link{ color: var(--secondary); font-weight: 600; cursor: pointer; }
.disclaimer-check .agreement-link:hover{ color: var(--primary); text-decoration: underline; }

/* ── Package selection cards (signup form) ── */
.package-picker{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:14px; }
.package-option{ position:relative; }
.package-option input{ position:absolute; opacity:0; inset:0; width:100%; height:100%; margin:0; cursor:pointer; }
.package-option .package-card{
    border:2px solid var(--border); border-radius:16px; padding:18px;
    background:var(--card); transition:border-color .2s,box-shadow .2s; height:100%;
    position:relative;
}
.package-option input:checked + .package-card{ border-color: var(--primary); box-shadow: 0 0 0 3px rgba(201,53,42,.12); }
.package-option .package-card .pkg-badge{ position:absolute; top:-10px; right:14px; background:var(--primary); color:#fff; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:3px 10px; border-radius:999px; }
.package-option .package-card .pkg-name{ font-weight:700; font-size:15px; color: var(--foreground); }
.package-option .package-card .pkg-price{ font-family:"Archivo Black",system-ui,sans-serif; font-size:20px; color: var(--primary); margin-top:4px; }
.package-option .package-card .pkg-price small{ font-family:"Inter",system-ui,sans-serif; font-size:12px; color: rgba(20,24,38,.55); font-weight: 400; }
.package-option .package-card ul{ list-style:none; padding:0; margin:10px 0 0; font-size:12px; color: rgba(20,24,38,.65); }
.package-option .package-card ul li{ padding:2px 0; display:flex; gap:6px; align-items:flex-start; }
.package-option .package-card ul li i{ color: var(--secondary); font-size:12px; margin-top:3px; flex-shrink:0; }
