/* =========================================================
   WOORDS — FINAL LOGIN / REGISTER UI
   ========================================================= */

:root{
  --woords-bg: #F4F4F5;
  --woords-text: #1A1A1A;
  --woords-muted: #6F6F73;
}

/* Reset */
*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
  overflow: hidden; /* 🚫 remove scroll */
  font-family: system-ui, -apple-system, sans-serif;
}

/* ---------------------------------------------------------
   BACKGROUND
   --------------------------------------------------------- */
#home{
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background: url("/assets/woords-bg.png") no-repeat center/cover;
}

/* ---------------------------------------------------------
   CENTER CONTAINER
   --------------------------------------------------------- */
.page{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 420px;

  gap: 14px; /* 🔥 tighter spacing */
}

/* ---------------------------------------------------------
   LOGO + TEXT
   --------------------------------------------------------- */
.brand img{
  width: 90px;
  margin-bottom: 4px;
}

.strapline{
  font-size: 13px;
  color: var(--woords-muted);
  margin-bottom: 6px; /* 🔥 tighter */
  text-align: center;
}

/* ---------------------------------------------------------
   FORM
   --------------------------------------------------------- */
form{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px; /* 🔥 reduced spacing */
}

/* INPUTS */
.input{
  width: 100%;
  height: 44px;

  padding: 0 16px;

  border: none;
  border-radius: 22px;

  background: #e9e9eb;
  color: #333;

  font-size: 14px;

  transition: all 0.2s ease;
}

.input:focus{
  outline: none;
  background: #f2f2f3;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* ---------------------------------------------------------
   BUTTON
   --------------------------------------------------------- */
.btn{
  width: 100%;
  height: 44px;

  border: none;
  border-radius: 22px;

  background: #000;
  color: #fff;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover{
  background: #111;
  transform: translateY(-1px);
}

.btn:active{
  transform: translateY(0);
}

/* ---------------------------------------------------------
   LINKS
   --------------------------------------------------------- */
.auth-link{
  font-size: 13px;
  color: var(--woords-muted);
  text-align: center;
}

.auth-link a{
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.auth-link a:hover{
  text-decoration: underline;
}

/* ---------------------------------------------------------
   ERROR BOX
   --------------------------------------------------------- */
.error{
  background: #fff1f2;
  color: #dc2626;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
}

/* =========================================================
   FULLSCREEN MENU — Smooth slide + perfect cross
   ========================================================= */

/* ---------- Hamburger button ---------- */
.menu-btn{
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  width: 56px;
  height: 56px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 10000 !important;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

/* Icon container */
.menu-btn .menu-icon{
  width: 38px;      /* max line width */
  height: 20px;     /* icon height */
  position: relative;
}

/* Lines (closed state defaults) */
.menu-btn .menu-line{
  position: absolute;
  left: 0;                 /* closed: left aligned */
  height: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,.92);
  transform-origin: center;
  will-change: width, top, left, transform, opacity, background;

  /* Stage animation:
     - width changes first (no delay)
     - then lines move/rotate (with delay)
  */
  transition:
    width      140ms cubic-bezier(.2,.8,.2,1),
    left       180ms cubic-bezier(.2,.8,.2,1) 140ms,
    top        180ms cubic-bezier(.2,.8,.2,1) 140ms,
    transform  220ms cubic-bezier(.2,.9,.2,1) 160ms,
    opacity    120ms ease,
    background 120ms ease;
}

/* Closed: 3 different lengths (pixel aligned) */
.menu-btn .l1{ top: 0px;  width: 38px; }
.menu-btn .l2{ top: 8px;  width: 26px; }
.menu-btn .l3{ top: 16px; width: 16px; }

/* ---------- Open state: equal length -> centred -> cross ---------- */
.menu-btn[aria-expanded="true"] .menu-line{
  width: 38px;          /* step 1: all equal */
  left: 50%;            /* step 2: centre them */
  background: #fff;     /* white on open */
  transform: translateX(-50%); /* keep centred before rotation */
}

.menu-btn[aria-expanded="true"] .l1{
  top: 8px;
  transform: translateX(-50%) rotate(45deg);
}

.menu-btn[aria-expanded="true"] .l2{
  opacity: 0;
}

.menu-btn[aria-expanded="true"] .l3{
  top: 8px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Overlay ---------- */
.menu-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 9998;
}

.menu-overlay.open{
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Fullscreen panel that SLIDES in ---------- */
.menu-panel{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #000 !important;
  color: #fff;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.2,.9,.2,1);
  z-index: 9999;
}

.menu-overlay.open .menu-panel{
  transform: translateX(0);
}

/* ---------- Menu items: larger, modern, minimal ---------- */
.menu-item{
  display: block;
  text-decoration: none;
  color: rgba(255,255,255,.92);

  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;

  padding: 14px 22px;
  margin: 6px 0;
  border-radius: 14px;

  transform: translateY(14px);
  opacity: 0;

  transition:
    transform .34s cubic-bezier(.2,.9,.2,1),
    opacity .26s ease,
    color .15s ease,
    background .15s ease;
}

.menu-overlay.open .menu-item{
  transform: translateY(0);
  opacity: 1;
}

/* Stagger delays */
.menu-overlay.open .menu-item:nth-child(1){ transition-delay: 120ms; }
.menu-overlay.open .menu-item:nth-child(2){ transition-delay: 170ms; }
.menu-overlay.open .menu-item:nth-child(3){ transition-delay: 220ms; }
.menu-overlay.open .menu-item:nth-child(4){ transition-delay: 270ms; }
.menu-overlay.open .menu-item:nth-child(5){ transition-delay: 320ms; }

.menu-item:hover{
  background: rgba(255,255,255,.08);
  color: #fff;
}

.menu-item:active{
  transform: translateY(0) scale(.99);
}

.right-rail{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.right-card{
  background:#fff;
  border:1px solid rgba(73,131,131,.10);
  border-radius:20px;
  box-shadow:0 8px 24px rgba(17,17,17,.04);
  overflow:hidden;
}

.right-card-title{
  font-size:15px;
  font-weight:800;
  color:#111;
  padding:14px 16px 10px;
  border-bottom:1px solid rgba(73,131,131,.08);
  background:linear-gradient(180deg, rgba(248,252,252,1) 0%, rgba(255,255,255,1) 100%);
}

.secure-status-row{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 16px;
  font-size:14px;
  color:#222;
}

.secure-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#3bb273;
  box-shadow:0 0 0 6px rgba(59,178,115,.12);
  flex:0 0 10px;
}

.trend-list{
  display:flex;
  flex-direction:column;
}

.trend-item{
  display:block;
  padding:12px 16px;
  border-top:1px solid rgba(73,131,131,.07);
  text-decoration:none;
  transition:background .15s ease;
}

.trend-item:first-child{
  border-top:none;
}

.trend-item:hover{
  background:#f8fbfb;
}

.trend-kicker{
  font-size:11px;
  font-weight:700;
  color:#6F6F73;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.trend-name{
  margin-top:2px;
  font-size:14px;
  font-weight:700;
  color:#111;
  line-height:1.3;
}

.trend-sub{
  margin-top:3px;
  font-size:12px;
  color:#6F6F73;
}

.trend-empty{
  padding:14px 16px;
  font-size:13px;
  color:#6F6F73;
}

.layout{
  display:grid;
  grid-template-columns: 260px 1fr 420px;
}

.right-rail{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-top:28px;
  width:100%;
  max-width:420px;
}

.right-card{
  border:1px solid rgba(73,131,131,.14);
  box-shadow:
    0 8px 20px rgba(0,0,0,.04),
    0 18px 40px rgba(0,0,0,.03);
}

.right-rail{
  position:sticky;
  top:88px;
}