/* ============================================================
   auth.css — Login / Register pages
   "Enter Toy Land" style: soft pastel gradient background,
   floating white glass card, pill inputs & button.
   ============================================================ */

:root{
  --auth-pink:   #f8dbe1;
  --auth-peach:  #fceadb;
  --auth-yellow: #fffaf0;
  --auth-card:   #ffffff;
  --auth-text:   #1f2126;
  --auth-muted:  #8a8d94;
  --auth-field:  #f3f3f5;
  --auth-line:   #eceef1;
  --auth-icon:   #2a2c31;
  --auth-deco:   #cbc6bd;
  --auth-radius: 28px;
}

*{ box-sizing:border-box; }

html, body.auth-body{ height:100%; }

body.auth-body{
  margin:0;
  min-height:100vh;
  font-family:'Poppins',system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--auth-text);
  background:linear-gradient(135deg, var(--auth-pink) 0%, var(--auth-peach) 45%, var(--auth-yellow) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  position:relative;
  overflow:hidden;
}

.auth-stage{
  position:relative;
  z-index:1;
  width:100%;
  max-width:400px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* decorative outline icons, positioned around THIS card's corners
   (relative to .auth-stage, which is sized to match the card) so
   they hug the box the way they do in the reference designs */
.page-decos{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}
.deco{
  position:absolute;
  color:var(--auth-deco);
  opacity:.65;
}
.deco svg{ display:block; width:100%; height:100%; }

.deco-star-tl   { top:6%;   left:-6%;  width:26px; height:26px; }
.deco-smiley-tr { top:6%;   right:-6%; width:22px; height:22px; }
.deco-rocket-bl { bottom:6%; left:-8%; width:26px; height:26px; opacity:.6; }
.deco-star-bc   { bottom:-3%; left:44%; width:18px; height:18px; opacity:.5; }
.deco-smiley-bc { bottom:-5%; left:56%; width:16px; height:16px; opacity:.45; }
.deco-sparkle-br{ bottom:2%;  right:-8%; width:30px; height:30px; opacity:.7; }

@media (max-width:420px){
  .deco-star-tl   { left:2%; }
  .deco-smiley-tr { right:2%; }
  .deco-rocket-bl { left:2%; }
  .deco-sparkle-br{ right:2%; }
}

/* the card */
.auth-card{
  position:relative;
  z-index:2;
  width:100%;
  max-width:400px;
  background:var(--auth-card);
  border-radius:var(--auth-radius);
  padding:40px 32px 32px;
  text-align:center;
  box-shadow:0 30px 60px -20px rgba(120,90,60,.18), 0 10px 25px -10px rgba(120,90,60,.12);
}

.auth-badge{
  width:58px;
  height:58px;
  margin:0 auto 20px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#ffffff;
  box-shadow:0 8px 18px -6px rgba(0,0,0,.12), inset 0 0 0 1px var(--auth-line);
  color:var(--auth-icon);
}
.auth-badge svg{ width:26px; height:26px; }

/* login badge icon points "up" (rocket) */
.auth-badge.badge-up svg{ transform:rotate(20deg); }

/* register badge icon points "down" (sprout) */
.auth-badge.badge-down svg{ transform:rotate(-18deg); }

.auth-card h1{
  margin:0 0 6px;
  font-size:26px;
  font-weight:700;
  letter-spacing:.2px;
  color:var(--auth-text);
}

.auth-sub{
  margin:0 0 26px;
  font-size:14.5px;
  color:var(--auth-muted);
  font-weight:500;
}

.auth-field{
  position:relative;
  margin-bottom:16px;
  text-align:left;
}
.auth-field svg{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:var(--auth-muted);
}
.auth-field input{
  width:100%;
  padding:14px 14px 14px 44px;
  border:1px solid var(--auth-line);
  background:var(--auth-field);
  border-radius:14px;
  font:inherit;
  font-size:14.5px;
  font-weight:500;
  color:var(--auth-text);
  outline:none;
  transition:border-color .15s ease, background .15s ease;
}
.auth-field input::placeholder{ color:#a7a9b1; font-weight:500; }
.auth-field input:focus{
  background:#ffffff;
  border-color:#d8b7be;
}

.auth-submit{
  width:100%;
  margin-top:6px;
  padding:14px 16px;
  border-radius:999px;
  border:1.5px solid var(--auth-text);
  background:#ffffff;
  color:var(--auth-text);
  font:inherit;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:transform .1s ease, background .15s ease, color .15s ease;
}
.auth-submit:hover{ background:var(--auth-text); color:#fff; }
.auth-submit:active{ transform:scale(.98); }

.auth-switch{
  margin-top:20px;
  font-size:14px;
  font-weight:500;
  color:var(--auth-muted);
}
.auth-switch a{
  color:var(--auth-text);
  font-weight:700;
  text-decoration:none;
}
.auth-switch a:hover{ text-decoration:underline; }

.auth-error{
  display:none;
  margin:-6px 0 14px;
  padding:10px 14px;
  border-radius:12px;
  background:#fdeceb;
  color:#b3453a;
  font-size:13px;
  font-weight:700;
  text-align:left;
}
.auth-error.show{ display:block; }

@media (max-width:420px){
  .auth-card{ padding:36px 24px 28px; }
}
/* The same line carries the reset-link confirmation, which is not an
   error and must not be dressed as one. */
.auth-error.is-ok { color: #178542; }

/* A link that has to be a button, because it acts rather than
   navigates - styled back down to look like the link it reads as. */
.auth-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline;
}
.auth-link:hover { opacity: .75; }
