:root {
  --brand: #ff7daf;
  --brand-2: #ffd3e8;
  --bg: #0e1116;
  --text: #0f172a;
  --muted: #6b7280;
  --white: #fff;
  --shadow: 0 18px 60px rgba(3, 7, 18, 0.35);
  --radius: 18px;
  --vh: 100vh;
}

@supports (height: 100dvh) {
  :root { --vh: 100dvh; }
}

/* Reset / base */
* { box-sizing: border-box; }
button { font: inherit; }

/* Demo container */
.page {
  min-height: var(--vh);
  display: grid;
  place-items: center;
  padding: 32px;
}

#top_nav_wrapper{
    z-index:1;
    position:absolute;
    top:0;
    left:50%;
    width:40%;
    height:75px;
    border: 1px solid rgb(239, 239, 239);
    background-color:white;
    transform:translate(-50%, -50px);
    border-radius:25px;
    display:flex;
    gap:15px;
    min-width:750px;
}

/* .landing_logo{
    float:left;
    padding-top:15px;
    width:75px;
    margin-left:25px;
} */

#nav_wrapper{
    float:left;
    display:flex;
    gap:15px;
    margin-left:75px;
}

#nav_wrapper a{
  text-decoration: none;
    cursor:pointer;
    font-size:1.2rem;
    color:#7b7b7b;
    justify-content: center;
    margin-top:25px;
}

.nav_space{
  width:50px;
}

/* Button */
.btn {
  margin-top: 15px ;
  border-radius: 999px ;
  cursor: pointer ;
  color: #ffffff ;
  height: 43px ;
  background-color: #ff7daf ;
  transition: transform .2s ease , filter .2s ease ;
  border: 1px solid transparent ;
  font-weight: 800 ;
  padding: 10px 15px ;
  -webkit-tap-highlight-color: transparent ;
}

.btn:hover {
  transform: translateY(-3px) ;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
  background: color-mix(in oklab, black 55%, transparent);
  backdrop-filter: blur(8px) saturate(120%);
}
.overlay[aria-hidden="false"] {
  display: block;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Stage */
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 560px);
  height: min(80vh, 620px);
  max-height: calc(var(--vh) - 96px);
  transform: translate(-50%, -50%);
  perspective: 1600px;
}

/* Card flip */
.card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
/* .card.is-register { transform: rotateY(180deg); } */

.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, white, #fafafa);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  overflow: hidden;
}
.front { transform: rotateY(0); }
.back  { transform: rotateY(180deg); }

/* extra explicit (prevents mirrored text on Safari) */
.card.is-register .face.front{ transform:rotateY(180deg); }
.card.is-register .face.back { transform:rotateY(360deg); } /* = 0deg */

/* Header / body */
.header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  background: inherit;
  border-bottom: 1px solid #eef0f4;
  /* border-top-left-radius: 999px; */
}
.title { font-weight: 900; letter-spacing: .2px; }

.login_logo{
  height:60px;
}

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #64748b;
}
.icon-btn:hover { background: #f2f4f7; }

.body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  scroll-behavior: smooth;
}

/* Form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.label { font-size: 12px; color: #6b7280; }

.input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  outline: 1px solid #e5e7eb;
  transition: outline-color .15s, box-shadow .15s;
}
.input:focus-within {
  outline-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 25%, transparent);
}
.input input {
  appearance: none;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 6px 6px;
  font: inherit;
  color: var(--text);
  outline: 0;
}

.end {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
}

/* Actions */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
}
.primary {
  appearance: none;
  border: 0;
  color: white;
  font-weight: 900;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: linear-gradient(
    180deg,
    var(--brand),
    color-mix(in oklab, var(--brand) 85%, black 0%)
  );
}

/* Messages (hidden until JS toggles) */
.msg { display: none; font-size: 13px; margin-top: 6px; }
.msg.ok { color: #16a34a; }
.msg.err { color: #ef4444; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

#loginRegisterWrapper{
    display:none;
}
