/* =========================================================
   RoseFlow — Sign-in page visual layer
   Drop-in CSS for the existing functional sign-in page.
   Pair with roseflow-login.html (markup/structure reference)
   and roseflow-login.js (cosmetic-only interactions).
   ========================================================= */

:root{
  --deep-1: #17092F;
  --deep-2: #2C1354;
  --deep-3: #43206B;
  --orchid: #9582C3;
  --magenta: #DC4FF5;
  --pink: #FC90E4;
  --violet: #6E5CE0;
  --violet-dark: #5A49C9;
}

*{ box-sizing:border-box; }
html,body{ height:100%; margin:0; }
body{
  font-family:'Inter', sans-serif;
  color:#fff;
  -webkit-font-smoothing:antialiased;
  overflow:hidden; /* page is a single fixed viewport stage; remove if your real page needs to scroll */
}

/* ---------- FULL-BLEED BACKGROUND ---------- */
.stage{
  position:relative;
  width:100vw;
  height:100vh;
  background:var(--deep-1);
}

.hero-media{
  position:absolute;
  inset:0;
}
.hero-media .slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition: opacity 1.6s ease;
}
.hero-media .slide.active{ opacity:1; }

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 90% at 85% 15%, rgba(220,79,245,0.14) 0%, rgba(23,9,47,0) 55%),
    linear-gradient(200deg, rgba(23,9,47,0.30) 0%, rgba(23,9,47,0.15) 40%, rgba(23,9,47,0.55) 100%);
}

/* ---------- BRAND, TOP LEFT ---------- */
.brand-block{
  position:absolute;
  z-index:3;
  top: 48px;
  left: 56px;
}
.brand-block .lockup{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-block .logo-badge{
  width: 38px;
  height: auto;
  display:block;
  border-radius: 9px;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.5);
}
.brand-block .wordmark{
  font-family:'Poppins', sans-serif;
  font-weight:700;
  font-size: 24px;
  letter-spacing:-0.01em;
  text-shadow: 0 3px 18px rgba(0,0,0,0.35);
}
.brand-block .byline{
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.tagline-block{
  position:absolute;
  z-index:3;
  left: 56px;
  bottom: 44px;
  max-width: 380px;
  font-size: 14.5px;
  line-height:1.6;
  color: rgba(255,255,255,0.82);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* ---------- GLASS SIGN-IN CARD ---------- */
.card-wrap{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding-right: 9vw;
}

.glass-card{
  width: 380px;
  padding: 40px 36px 36px;
  border-radius: 28px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow:
    0 30px 70px -20px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

h1.title{
  font-family:'Poppins', sans-serif;
  font-weight:600;
  font-size: 28px;
  line-height:1.15;
  margin: 0 0 8px 0;
  letter-spacing: -0.01em;
  color:#fff;
}

p.subtitle{
  margin:0 0 28px 0;
  color: rgba(255,255,255,0.68);
  font-size:13.5px;
  line-height:1.5;
}

.field{ margin-bottom: 18px; }
.field label{
  display:block;
  font-size: 12.5px;
  font-weight:600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 7px;
}

.input-wrap{
  position:relative;
  display:flex;
  align-items:center;
}

input[type="email"], input[type="text"], input[type="password"]{
  width:100%;
  font-family:'Inter', sans-serif;
  font-size: 14px;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input::placeholder{ color: rgba(255,255,255,0.42); }

input:focus{
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.10);
}

.password-actions{
  position:absolute;
  right:8px;
  display:flex;
  align-items:center;
  gap:6px;
}

.show-toggle{
  background:none;
  border:none;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size:12.5px;
  color: rgba(255,255,255,0.75);
  cursor:pointer;
  padding: 6px 4px;
}
.show-toggle:hover{ color: #fff; }

.row-between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin: 2px 0 24px 0;
}

.checkbox-row{
  display:flex;
  align-items:center;
  gap:9px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.82);
  cursor:pointer;
  user-select:none;
}
.checkbox-row input{
  width:16px; height:16px;
  accent-color: var(--magenta);
  cursor:pointer;
}

.btn-primary{
  width:100%;
  padding: 13px 16px;
  border:none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--violet) 0%, var(--magenta) 130%);
  color:#fff;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size: 14.5px;
  cursor:pointer;
  box-shadow: 0 12px 26px -10px rgba(220,79,245,0.55);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(220,79,245,0.65); }
.btn-primary:active{ transform: translateY(0); }
.btn-primary:focus-visible{ outline: 2px solid #fff; outline-offset:3px; }

.link-center{
  display:block;
  text-align:center;
  margin-top: 16px;
  font-size: 13px;
  font-weight:600;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  background:none;
  border:none;
  cursor:pointer;
  width:100%;
}
.link-center:hover{ color: #fff; }

.reset-panel{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.reset-panel.open{
  max-height:280px;
  opacity:1;
  margin-top: 20px;
}

.reset-note{
  font-size: 12.5px;
  line-height:1.55;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom:14px;
}

.btn-secondary{
  width:100%;
  padding: 11px 16px;
  margin-top:10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size: 13px;
  cursor:pointer;
  transition: border-color .15s ease, background .15s ease;
}
.btn-secondary:hover{ border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.10); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px){
  body{ overflow:auto; }
  .stage{ height:auto; min-height:100vh; }
  .card-wrap{ justify-content:center; padding: 140px 20px 60px; }
  .glass-card{ width:100%; max-width: 380px; }
  .brand-block{ top: 28px; left: 24px; }
  .tagline-block{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .hero-media .slide{ transition: opacity 0.4s linear; }
}
