/* =========================
   RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

:root{

  --bg-primary:#020617;
  --bg-secondary:#0f172a;
  --bg-card:rgba(15,23,42,.72);

  --border:rgba(255,255,255,.08);

  --text:#ffffff;
  --muted:#94a3b8;

  --blue:#00c2ff;
  --cyan:#00ffe0;
  --green:#00ff99;
  --purple:#7c3aed;

  --danger:#ef4444;

  --shadow:
  0 20px 60px rgba(0,0,0,.45);

  --radius:28px;
}

/* =========================
   BODY
========================= */
body{

  min-height:100vh;

  font-family:
  "Inter",
  sans-serif;

  background:
  radial-gradient(
    circle at top left,
    rgba(0,194,255,.15),
    transparent 30%
  ),
  radial-gradient(
    circle at bottom right,
    rgba(124,58,237,.18),
    transparent 35%
  ),
  linear-gradient(
    135deg,
    #020617,
    #0f172a,
    #111827
  );

  color:var(--text);

  overflow-x:hidden;

  display:flex;
  align-items:center;
  justify-content:center;

  position:relative;
}

/* =========================
   BACKGROUND GLOW
========================= */
body::before,
body::after{

  content:"";

  position:fixed;

  width:420px;
  height:420px;

  border-radius:50%;

  filter:blur(120px);

  z-index:-1;
}

body::before{

  background:
  rgba(0,194,255,.18);

  top:-140px;
  left:-120px;
}

body::after{

  background:
  rgba(124,58,237,.18);

  bottom:-140px;
  right:-120px;
}

/* =========================
   WRAPPER
========================= */
.wrapper{

  width:100%;

  padding:24px;

  display:flex;
  justify-content:center;
  align-items:center;
}

/* =========================
   CARD
========================= */
.card{

  width:100%;
  max-width:460px;

  padding:42px 34px;

  border-radius:var(--radius);

  background:var(--bg-card);

  border:1px solid var(--border);

  backdrop-filter:blur(24px);

  box-shadow:var(--shadow);

  position:relative;

  overflow:hidden;
}

/* TOP SHINE */
.card::before{

  content:"";

  position:absolute;

  top:0;
  left:0;

  width:100%;
  height:1px;

  background:
  linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.4),
    transparent
  );
}

/* =========================
   HEADINGS
========================= */
h2{

  font-size:
  clamp(30px,4vw,38px);

  font-weight:800;

  margin-bottom:10px;

  letter-spacing:-1px;
}

.subtitle{

  color:var(--muted);

  font-size:15px;

  line-height:1.6;

  margin-bottom:30px;
}

/* =========================
   INPUT GROUP
========================= */
.input-group{

  position:relative;

  margin-bottom:24px;
}

/* INPUT */
.input-group input{

  width:100%;

  height:60px;

  padding:
  20px 52px 0 18px;

  background:
  rgba(255,255,255,.04);

  border:
  1px solid rgba(255,255,255,.08);

  border-radius:18px;

  color:var(--text);

  outline:none;

  font-size:15px;

  transition:.3s;
}

/* INPUT HOVER */
.input-group input:hover{

  border-color:
  rgba(255,255,255,.18);
}

/* INPUT FOCUS */
.input-group input:focus{

  border-color:
  rgba(0,194,255,.6);

  box-shadow:
  0 0 0 4px rgba(0,194,255,.08);
}

/* FLOAT LABEL */
.input-group label{

  position:absolute;

  left:18px;
  top:18px;

  color:#64748b;

  font-size:14px;

  pointer-events:none;

  transition:.25s ease;
}

/* FLOAT EFFECT */
.input-group input:focus + label,
.input-group input:valid + label{

  top:8px;

  font-size:11px;

  color:var(--blue);
}

/* =========================
   PASSWORD GROUP
========================= */
.password-group{
  position:relative;
}

/* TOGGLE EYE */
.eye{

  position:absolute;

  right:18px;
  top:20px;

  cursor:pointer;

  font-size:16px;

  color:#94a3b8;

  transition:.3s;

  user-select:none;
}

.eye:hover{

  color:var(--blue);

  transform:scale(1.08);
}

/* =========================
   PASSWORD STRENGTH
========================= */
.strength-bar{

  width:100%;

  height:6px;

  margin-top:12px;

  background:
  rgba(255,255,255,.06);

  border-radius:999px;

  overflow:hidden;
}

#strengthFill{

  width:0%;

  height:100%;

  border-radius:999px;

  transition:.3s ease;
}

#strengthText{

  display:block;

  margin-top:8px;

  color:var(--muted);

  font-size:12px;
}

/* =========================
   ERROR TEXT
========================= */
.error-text{

  display:block;

  margin-top:10px;

  color:#f87171;

  font-size:12px;
}

/* =========================
   BUTTON
========================= */
.primary-btn{

  width:100%;

  height:58px;

  border:none;

  border-radius:18px;

  background:
  linear-gradient(
    135deg,
    var(--green),
    var(--blue)
  );

  color:#021217;

  font-size:15px;

  font-weight:800;

  letter-spacing:.3px;

  cursor:pointer;

  transition:.35s ease;

  margin-top:10px;

  box-shadow:
  0 10px 30px rgba(0,194,255,.18);
}

.primary-btn:hover{

  transform:
  translateY(-2px);

  box-shadow:
  0 16px 40px rgba(0,194,255,.28);
}

.primary-btn:active{

  transform:scale(.98);
}

/* =========================
   SWITCH LINKS
========================= */
.switch{

  margin-top:24px;

  text-align:center;

  color:var(--muted);

  font-size:14px;

  line-height:1.6;
}

.switch a{

  color:var(--blue);

  text-decoration:none;

  font-weight:700;

  transition:.3s;
}

.switch a:hover{

  color:var(--green);
}

/* =========================
   VERIFY BOX
========================= */
#verifyBox{

  text-align:center;
}

#verifyBox h2{

  margin-top:10px;
}

.verify-icon{

  width:90px;
  height:90px;

  margin:0 auto 20px;

  border-radius:50%;

  background:
  linear-gradient(
    135deg,
    rgba(0,255,153,.15),
    rgba(0,194,255,.15)
  );

  border:
  1px solid rgba(255,255,255,.08);

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:38px;
}

/* =========================
   TOAST
========================= */
.toast{

  position:fixed;

  bottom:24px;
  right:24px;

  background:
  rgba(15,23,42,.95);

  border:
  1px solid rgba(255,255,255,.08);

  color:white;

  padding:16px 20px;

  border-radius:16px;

  font-size:14px;

  z-index:9999;

  opacity:0;

  transform:translateY(20px);

  transition:.3s ease;

  backdrop-filter:blur(20px);

  max-width:90%;
}

.toast.show{

  opacity:1;

  transform:translateY(0);
}

/* =========================
   HIDDEN
========================= */
.hidden{
  display:none;
}

/* =========================
   TABLET
========================= */
@media(max-width:900px){

  .wrapper{
    padding:20px;
  }

  .card{

    max-width:100%;

    padding:34px 28px;
  }

}

/* =========================
   MOBILE
========================= */
@media(max-width:640px){

  body{
    align-items:flex-start;
  }

  .wrapper{

    min-height:100vh;

    padding:16px;

    align-items:center;
  }

  .card{

    border-radius:24px;

    padding:30px 22px;
  }

  h2{

    font-size:30px;
  }

  .subtitle{

    font-size:14px;
  }

  .input-group input{

    height:56px;

    font-size:14px;
  }

  .primary-btn{

    height:54px;

    font-size:14px;
  }

}

/* =========================
   SMALL MOBILE
========================= */
@media(max-width:420px){

  .wrapper{
    padding:12px;
  }

  .card{

    padding:26px 18px;

    border-radius:22px;
  }

  h2{

    font-size:26px;
  }

  .subtitle{

    margin-bottom:24px;
  }

  .input-group{

    margin-bottom:20px;
  }

  .input-group input{

    height:54px;

    padding:
    18px 48px 0 16px;
  }

  .eye{

    right:16px;
    top:18px;
  }

  .primary-btn{

    height:52px;
  }

  .toast{

    left:14px;
    right:14px;

    bottom:18px;
  }

}

/* =========================
   LARGE SCREENS
========================= */
@media(min-width:1600px){

  .card{

    max-width:520px;

    padding:50px 42px;
  }

  h2{

    font-size:42px;
  }

}
