
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d47a1 0%, #0065FF 35%, #1e88e5 65%, #0a3d7a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  position: relative; overflow: hidden;
}

.orb {
  position: fixed; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width: 320px; height: 320px; top: -80px;  left: -80px;  animation-delay: 0s; }
.orb-2 { width: 220px; height: 220px; bottom: -60px; right: -40px; animation-delay: 2s; }
.orb-3 { width: 140px; height: 140px; top: 40%;  right: 8%;  animation-delay: 4s; }
.orb-4 { width: 80px;  height: 80px;  top: 15%;  left: 12%;  animation-delay: 1s; }
.orb-5 { width: 60px;  height: 60px;  bottom: 20%; left: 30%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.04); }
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.auth-card {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.2rem 2rem;
  width: 100%;
  max-width: 420px;
  position: relative; z-index: 10;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  animation: slideUp .5s cubic-bezier(.22,.8,.32,1) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-brand {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: 1.6rem;
}
.auth-brand-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
}
.auth-brand-name { font-size: 1.1rem; font-weight: 800; color: #fff; letter-spacing: .4px; }

.auth-title { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: .25rem; }
.auth-sub   { font-size: .83rem; color: rgba(255,255,255,.72); margin-bottom: 1.6rem; line-height: 1.5; }

.field-group { margin-bottom: 1rem; }
.field-label {
  display: block; font-size: .76rem; font-weight: 700;
  color: rgba(255,255,255,.85); margin-bottom: .35rem; letter-spacing: .3px;
}
.field-wrap { position: relative; }
.field-icon {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.6); font-size: .95rem; pointer-events: none;
}
.field-input {
  width: 100%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  padding: .7rem .9rem .7rem 2.5rem;
  font-size: .88rem; font-family: 'Nunito', sans-serif;
  color: #fff; outline: none;
  transition: border-color .2s, background .2s;
}
.field-input::placeholder { color: rgba(255,255,255,.5); }
.field-input:focus {
  border-color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.22);
}

.field-input.no-icon { padding-left: .9rem; }

.field-eye {
  position: absolute; right: .85rem; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.6); cursor: pointer; font-size: .95rem;
  background: none; border: none; padding: 0;
}
.field-eye:hover { color: #fff; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.check-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem;
}
.check-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; color: rgba(255,255,255,.8); cursor: pointer;
}
.check-label input { accent-color: #fff; width: 14px; height: 14px; }
.forgot-link {
  font-size: .78rem; color: rgba(255,255,255,.85); font-weight: 700;
  text-decoration: none; transition: color .15s;
}
.forgot-link:hover { color: #fff; text-decoration: underline; }

.auth-btn {
  width: 100%; padding: .78rem;
  background: rgba(255,255,255,0.95);
  color: #0065FF; border: none; border-radius: 10px;
  font-size: .92rem; font-weight: 800; font-family: 'Nunito', sans-serif;
  cursor: pointer; letter-spacing: .3px;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.auth-btn:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.auth-btn:active { transform: translateY(0); }

.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.2rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,.22);
}
.auth-divider span { font-size: .75rem; color: rgba(255,255,255,.55); white-space: nowrap; }

.auth-footer {
  text-align: center; margin-top: 1.2rem;
  font-size: .82rem; color: rgba(255,255,255,.72);
}
.auth-footer a {
  color: #fff; font-weight: 800; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  transition: border-color .15s;
}
.auth-footer a:hover { border-color: #fff; }

.auth-back {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.8); font-size: .82rem; font-weight: 700;
  text-decoration: none; margin-bottom: 1.4rem;
  transition: color .15s;
}
.auth-back:hover { color: #fff; }

.otp-wrap {
  display: flex; gap: .75rem; justify-content: center;
  margin-bottom: 1.4rem;
}
.otp-input {
  width: 52px; height: 56px; text-align: center;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 12px; font-size: 1.3rem; font-weight: 800;
  color: #fff; font-family: 'Nunito', sans-serif; outline: none;
  transition: border-color .2s, background .2s;
}
.otp-input:focus {
  border-color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.25);
}

.auth-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: .3rem .85rem;
  font-size: .75rem; color: rgba(255,255,255,.9); font-weight: 600;
  margin-bottom: 1.4rem;
}

.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 1.2rem;
}

.strength-bar { display: flex; gap: 4px; margin-top: .35rem; }
.strength-seg {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.2); transition: background .3s;
}
.strength-seg.weak   { background: #f87171; }
.strength-seg.medium { background: #fbbf24; }
.strength-seg.strong { background: #4ade80; }
.strength-text { font-size: .7rem; color: rgba(255,255,255,.65); margin-top: .25rem; }
