/* ============================================================
   ROGUDA Fashion — Login Page Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: #0A0A0A; color: #F8F4EE; overflow-x: hidden; }

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --black: #0A0A0A;
  --charcoal: #141414;
  --dark: #1A1A1A;
  --off-white: #F8F4EE;
  --warm-gray: #8A8070;
  --border: rgba(201,168,76,0.16);
}

/* ── Loader ── */
#pageLoader { position: fixed; inset: 0; z-index: 99999; background: var(--black); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity .6s ease, visibility .6s ease; }
#pageLoader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { display: flex; flex-direction: column; align-items: center; gap: 20px; animation: lfi .8s ease both; }
@keyframes lfi { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.loader-badge { width: 72px; height: 72px; border: 1.5px solid var(--gold); border-radius: 4px; overflow: hidden; box-shadow: 0 0 40px rgba(201,168,76,.15); }
.loader-badge img { width: 100%; height: 100%; object-fit: cover; }
.loader-wordmark { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; color: var(--off-white); }
.loader-tagline { font-size: 9px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-top: -10px; animation: lfi .8s .2s ease both; }
.loader-bar-wrap { width: 180px; height: 1px; background: rgba(201,168,76,.15); margin-top: 48px; overflow: hidden; animation: lfi .8s .3s ease both; }
.loader-bar { height: 100%; background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light)); width: 0; animation: lp 1.8s .4s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes lp { to { width: 100%; } }
.loader-percent { font-size: 10px; letter-spacing: 3px; color: rgba(201,168,76,.5); margin-top: 12px; animation: lfi .8s .4s ease both; }
.loader-corner { position: absolute; width: 28px; height: 28px; }
.loader-corner.tl { top: 40px; left: 40px; border-top: 1px solid rgba(201,168,76,.3); border-left: 1px solid rgba(201,168,76,.3); }
.loader-corner.tr { top: 40px; right: 40px; border-top: 1px solid rgba(201,168,76,.3); border-right: 1px solid rgba(201,168,76,.3); }
.loader-corner.bl { bottom: 40px; left: 40px; border-bottom: 1px solid rgba(201,168,76,.3); border-left: 1px solid rgba(201,168,76,.3); }
.loader-corner.br { bottom: 40px; right: 40px; border-bottom: 1px solid rgba(201,168,76,.3); border-right: 1px solid rgba(201,168,76,.3); }

/* ── Scroll To Top ── */
#scrollTop { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; background: var(--gold); color: var(--black); border: none; cursor: pointer; font-size: 15px; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 900; }
#scrollTop.show { opacity: 1; visibility: visible; }
#scrollTop:hover { background: var(--gold-light); transform: translateY(-4px); }

/* ── Mobile Drawer ── */
#mobileDrawer { position: fixed; inset: 0; background: rgba(10,10,10,.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); z-index: 990; display: flex; flex-direction: column; padding: 84px 0 32px; transform: translateY(-100%); transition: transform .55s cubic-bezier(.76,0,.24,1); overflow-y: auto; }
#mobileDrawer a:not(.drawer-cta) { font-family: 'Playfair Display', serif; font-size: 28px; color: rgba(248,244,238,.5); text-decoration: none; padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; text-align: center; transition: color .3s ease; }
#mobileDrawer a:not(.drawer-cta):hover { color: #F8F4EE; }
.drawer-cta { margin: 28px 32px 0 !important; background: var(--gold) !important; color: var(--black) !important; font-family: 'Outfit', sans-serif !important; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 3px !important; text-transform: uppercase !important; padding: 15px !important; text-align: center !important; display: flex !important; justify-content: center !important; border-bottom: none !important; transition: background .3s ease !important; }
.drawer-cta:hover { background: var(--gold-light) !important; }

/* ── Navigation ── */
.nav-cinematic { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 24px 60px; display: flex; align-items: center; transition: all .4s ease; }
.nav-cinematic.scrolled { padding: 14px 60px; background: rgba(10,10,10,.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-container { width: 100%; max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge { width: 46px; height: 46px; border: 1.5px solid var(--gold); border-radius: 4px; overflow: hidden; flex-shrink: 0; transition: background .3s ease; }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }
.logo:hover .logo-badge { background: rgba(201,168,76,.15); }
.logo-text { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--off-white); letter-spacing: 2px; }
.nav-links { display: flex; align-items: center; list-style: none; gap: 4px; }
.nav-links a { font-size: 12px; font-weight: 500; letter-spacing: 1px; color: rgba(248,244,238,.7); text-decoration: none; padding: 6px 12px; transition: color .3s ease; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 2px; left: 12px; width: 0; height: 1px; background: var(--gold); transition: width .3s ease; }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: calc(100% - 24px); }
.nav-btn-outline { border: 1px solid rgba(201,168,76,.4) !important; border-radius: 2px; color: var(--gold) !important; padding: 7px 16px !important; }
.nav-btn-outline::after { display: none !important; }
.nav-btn-outline:hover { background: rgba(201,168,76,.1) !important; }
.nav-btn-gold { background: var(--gold) !important; color: var(--black) !important; border-radius: 2px; font-weight: 600 !important; padding: 8px 20px !important; }
.nav-btn-gold::after { display: none !important; }
.nav-btn-gold:hover { background: var(--gold-light) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--off-white); transition: all .3s ease; }

/* ── Auth Layout ── */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding-top: 80px; }

/* ── Form Side ── */
.auth-form-side { background: var(--charcoal); display: flex; align-items: flex-start; justify-content: center; padding: 60px 48px; overflow-y: auto; }
.auth-inner { width: 100%; max-width: 460px; }

.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; }
.auth-brand-badge { width: 38px; height: 38px; border: 1.5px solid var(--gold); border-radius: 3px; overflow: hidden; }
.auth-brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.auth-brand-name { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; letter-spacing: 2px; color: var(--off-white); }

.auth-heading { margin-bottom: 32px; }
.auth-heading h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 40px); font-weight: 900; line-height: 1.1; color: var(--off-white); margin-bottom: 10px; }
.auth-heading h1 em { color: var(--gold); font-style: italic; }
.auth-heading p { font-size: 13px; font-weight: 300; color: var(--warm-gray); line-height: 1.7; }

/* Error banner */
.err-banner { display: none; align-items: center; gap: 10px; background: rgba(220,53,69,.1); border: 1px solid rgba(220,53,69,.3); color: #f07a84; font-size: 12px; padding: 12px 16px; margin-bottom: 20px; }
.err-banner.show { display: flex; }
.err-banner i { flex-shrink: 0; }

/* Form groups */
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fl { font-size: 9px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--warm-gray); }
.req { color: var(--gold); }
.gi { background: rgba(201,168,76,.04); border: 1px solid rgba(201,168,76,.15); padding: 13px 16px; font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--off-white); outline: none; width: 100%; transition: border-color .3s ease; }
.gi::placeholder { color: rgba(138,128,112,.5); }
.gi:focus { border-color: rgba(201,168,76,.4); background: rgba(201,168,76,.06); }
.gi.invalid { border-color: rgba(220,53,69,.5); }
.ferr { font-size: 11px; color: #f07a84; min-height: 16px; }

/* Password wrapper */
.pw-wrap { position: relative; }
.pw-wrap .gi { padding-right: 44px; }
.pw-toggle { position: absolute; right: 0; top: 0; bottom: 0; width: 44px; background: none; border: none; color: var(--warm-gray); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: color .3s ease; }
.pw-toggle:hover { color: var(--gold); }

/* Remember me / forgot */
.form-options { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.forgot-link { font-size: 12px; color: var(--gold-light); text-decoration: none; transition: color .3s ease; }
.forgot-link:hover { color: var(--gold); }

/* Checkbox row */
.chk-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.chk-row input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.chk-sq { width: 18px; height: 18px; flex-shrink: 0; border: 1.5px solid rgba(201,168,76,.3); background: transparent; display: flex; align-items: center; justify-content: center; transition: all .2s ease; }
.chk-sq i { font-size: 9px; color: var(--black); opacity: 0; transition: opacity .2s ease; }
.chk-row input:checked ~ .chk-sq { background: var(--gold); border-color: var(--gold); }
.chk-row input:checked ~ .chk-sq i { opacity: 1; }
.chk-text { font-size: 12px; font-weight: 300; color: var(--warm-gray); }

/* Submit button */
.btn-submit { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--gold); color: var(--black); font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; border: none; padding: 16px 32px; cursor: pointer; width: 100%; margin-top: 24px; transition: all .3s ease; }
.btn-submit:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,168,76,.22); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* POPIA note */
.popia-note { font-size: 11px; color: rgba(138,128,112,.5); line-height: 1.6; margin-top: 20px; }
.popia-note a { color: rgba(201,168,76,.5); text-decoration: none; transition: color .3s ease; }
.popia-note a:hover { color: var(--gold); }

/* Auth links */
.auth-links { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.auth-links p { font-size: 12px; color: var(--warm-gray); }
.auth-links a { color: var(--gold-light); text-decoration: none; transition: color .3s ease; }
.auth-links a:hover { color: var(--gold); }

/* ── Visual Side ── */
.auth-visual-side {
  position: sticky; top: 80px;
  height: calc(100vh - 80px);
  background:
    linear-gradient(160deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.6) 60%, rgba(201,168,76,.08) 100%),
    url('assets/images/hero.jpg') center/cover no-repeat;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px;
  overflow: hidden;
}
.auth-corner-badge { align-self: flex-start; font-size: 9px; letter-spacing: 5px; text-transform: uppercase; color: rgba(201,168,76,.5); border: 1px solid rgba(201,168,76,.2); padding: 7px 14px; }
.auth-stats { display: flex; gap: 40px; }
.auth-stat-num { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.auth-stat-lbl { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--warm-gray); }
.auth-quote blockquote { font-family: 'Playfair Display', serif; font-size: clamp(20px, 2.5vw, 28px); font-weight: 400; line-height: 1.4; color: var(--off-white); margin-bottom: 16px; }
.auth-quote blockquote em { color: var(--gold); font-style: italic; }
.auth-quote cite { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--warm-gray); font-style: normal; }

/* ── Footer ── */
.footer-cinematic { background: var(--black); border-top: 1px solid rgba(201,168,76,.12); padding: 80px 0 0; }
.footer-container { width: 90%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.6fr auto; gap: 60px; padding-bottom: 60px; }
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact p { font-size: 13px; color: var(--warm-gray); line-height: 1.6; }
.footer-contact a { color: var(--gold-light); text-decoration: none; transition: color .3s ease; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact strong { color: var(--off-white); margin-right: 6px; }
.footer-nav { list-style: none; margin-top: 6px; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { font-size: 13px; color: var(--warm-gray); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color .3s ease; }
.footer-nav a::before { content: ''; width: 0; height: 1px; background: var(--gold); transition: width .3s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-nav a:hover::before { width: 14px; }
.newsletter-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--gold); margin-bottom: 10px; }
.newsletter-text { font-size: 13px; color: var(--warm-gray); line-height: 1.6; margin-bottom: 18px; }
.newsletter-form .input-group { display: flex; border: 1px solid rgba(201,168,76,.24); }
.newsletter-form input { flex: 1; background: transparent; border: none; padding: 12px 16px; font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--off-white); }
.newsletter-form input::placeholder { color: var(--warm-gray); }
.newsletter-form input:focus { outline: none; }
.btn-subscribe { background: var(--gold); border: none; padding: 0 18px; color: var(--black); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .3s ease; display: flex; align-items: center; gap: 6px; }
.btn-subscribe:hover { background: var(--gold-light); }
.consent-note { font-size: 10px; color: rgba(138,128,112,.5); margin-top: 10px; line-height: 1.5; }
.footer-social { display: flex; gap: 10px; align-self: start; margin-top: 4px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(201,168,76,.24); display: flex; align-items: center; justify-content: center; color: var(--warm-gray); text-decoration: none; font-size: 14px; transition: all .3s ease; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0; }
.footer-bottom .copyright { width: 90%; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.footer-bottom p { font-size: 11px; color: rgba(138,128,112,.5); letter-spacing: .5px; }
.copyright-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 2px; margin-top: 8px !important; }
.copyright-links a { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(138,128,112,.45); text-decoration: none; margin: 0 8px; transition: color .3s ease; }
.copyright-links a:hover { color: var(--gold); }
.footer-credentials { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(201,168,76,.4); }
.footer-credentials .divider { color: rgba(201,168,76,.2); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .nav-cinematic, .nav-cinematic.scrolled { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual-side { display: none; }
  .auth-form-side { padding: 40px 24px; }
}
@media (max-width: 640px) {
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .auth-inner { max-width: 100%; }
}
@media (max-width: 540px) {
  .footer-credentials { flex-direction: column; gap: 6px; }
  .footer-credentials .divider { display: none; }
  footer { padding-bottom: 80px; }
  #scrollTop { bottom: 20px; left: 16px; right: auto; }
}

@media (max-width: 480px) {
  .newsletter-form .input-group {
    flex-direction: column;
    border: none;
    gap: 10px;
  }
  .newsletter-form input {
    border: 1px solid rgba(201,168,76,.24);
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
  }
  .btn-subscribe {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 6px;
  }
}
