:root{
  --bg: radial-gradient(circle at 10% 20%, #13151b 0%, #05070b 35%, #030404 100%);
  --card: rgba(13, 16, 21, 0.7);
  --ink: #ffffff;
  --muted: rgba(255,255,255,.5);
  --glass: rgba(13, 16, 21, 0.8);
  --glass-stroke: rgba(255,255,255,.1);
  --shadow: 0 20px 40px rgba(0,0,0,.3);
  --brand: #009999;
  --brand-dark: #e6006e;
  --accent-soft: rgba(255,0,122,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--ink);
  background:var(--bg);
  overflow-x:hidden;
}

/* Background - updated for dark theme */
.scene{position:fixed; inset:0; pointer-events:none; overflow:hidden}
.orb{position:absolute; border-radius:50%; filter:blur(.2px); opacity:.9}
.orb-lg{width:520px;height:520px; left:-140px; bottom:-120px; background:radial-gradient(circle at 60% 40%, rgba(255,0,122,.15), rgba(99,102,241,.2) 45%, rgba(99,102,241,.15) 60%, rgba(168,85,247,.1) 75%, rgba(236,72,153,.05) 90%)}
.orb-md{width:240px;height:240px; right:8%; bottom:8%; background:radial-gradient(circle, rgba(255,255,255,.1) 0%, rgba(255,0,122,.15) 60%, rgba(99,102,241,.2) 100%)}
.orb-sm{width:140px;height:140px; right:22%; bottom:18%; background:radial-gradient(circle, rgba(255,255,255,.1) 0%, rgba(255,0,122,.1) 60%, rgba(99,102,241,.15) 100%)}
.pebble{position:absolute; background:rgba(255,255,255,.03); border-radius:40% 60% 55% 45%/55% 45% 55% 45%; box-shadow:var(--shadow)}
.p1{width:180px;height:120px; left:8%; bottom:6%}
.p2{width:110px;height:80px; left:16%; bottom:3%}
.p3{width:80px;height:60px; left:23%; bottom:5%}

/* Layout - Updated for consistent width and better centering */
.wrap{
  position:relative; z-index:1;
  display:flex;
  justify-content:center; 
  align-items:center;
  min-height:100dvh; 
  padding:32px;
}

.card{
  background:var(--card);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:32px;
  border: 1px solid rgba(255,255,255,.05);
  backdrop-filter: blur(16px);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.glass{
  background:var(--glass);
  backdrop-filter: blur(16px);
  border:1px solid var(--glass-stroke);
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  object-fit: cover;
}
.card-head{display:flex; justify-content:space-between; align-items:center; margin-bottom:6px}
.brand{font-weight:600; color:#ffffff;}
.link{color:var(--brand); text-decoration:none; font-weight:600}
.link.subtle{opacity:.9}
.link:hover{color:#fff;}

.card-title{font-size:32px; font-weight:700; margin:12px 0 8px}

/* Form */
.form{margin-top:8px}
.form-group{margin:16px 0}
label{display:block; font-size:13px; color:var(--muted); margin:6px 0 8px}
input{
  width:100%; 
  border: 1px solid rgba(255,255,255,.1);
  border-radius:16px;
  padding:14px 16px; 
  font-size:15px; 
  background:rgba(0,0,0,.35);
  color: var(--ink);
  transition: all 0.2s ease;
}
input::placeholder {
  color: rgba(255,255,255,.3);
}
input:focus{
  outline:none; 
  border-color:var(--brand);
  background: rgba(0,0,0,.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.password-row{position:relative}
.icon-btn{
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; cursor:pointer; font-size:16px; opacity:.7;
  color: var(--muted);
  padding: 4px;
  border-radius: 4px;
}
.icon-btn:hover{opacity:1; color: var(--ink); background: rgba(255,255,255,.1);}

.field-feedback{font-size:12px; margin-top:6px; display:none}
.field-feedback.success{display:block; color:#22c55e}
.field-feedback.error{display:block; color:#ef4444}
.requirements{margin-top:6px; font-size:12px; color:var(--muted)}
.requirement.valid{color:#22c55e}
.requirement.invalid{color:#ef4444}

.btn{
  margin-top:16px;
  background: radial-gradient(circle at 10% 20%, #6366f1 0%, #a855f7 35%, #EC4899 65%);
  color:#fff; 
  border:0; 
  border-radius:16px;
  padding:14px 20px; 
  font-weight:700; 
  cursor:pointer; 
  width:100%;
  box-shadow: 0 10px 25px rgba(99,102,241,.25);
  transition: all 0.2s ease;
}
.btn:disabled{
  opacity:.6; 
  cursor:not-allowed;
  filter: grayscale(0.5);
}
.btn:hover:not(:disabled){
  filter: brightness(1.1);
  box-shadow: 0 12px 30px rgba(99,102,241,.35);
  transform: translateY(-1px);
}

.pill.dark{
  display:inline-block; 
  padding:12px 18px; 
  border-radius:18px;
  background: rgba(255,255,255,.05);
  color: #ffffff; 
  font-weight:600; 
  text-decoration:none;
  border: 1px solid rgba(255,255,255,.1);
  transition: all 0.2s ease;
}
.pill.dark:hover{
  background: rgba(255,255,255,.1);
  transform: translateY(-1px);
}
.muted{color:var(--muted)}
.cta-row{display:flex; gap:12px; align-items:center; margin-top:20px; justify-content: center;}

/* Alerts */
.alert{
  border-radius:14px; 
  padding:12px 16px; 
  font-size:14px; 
  margin:12px 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}
.alert-success{
  background: rgba(34,197,94,.14);
  color: #ecfdf3;
  border: 1px solid rgba(34,197,94,.2);
}
.alert-error{
  background: rgba(244,63,94,.17);
  color: #fecdd3;
  border: 1px solid rgba(244,63,94,.2);
}

/* Responsive */
@media (max-width: 768px) {
  .wrap {
    padding: 20px;
  }
  
  .card {
    padding: 24px;
    border-radius: 20px;
    max-width: 420px;
  }
  
  .card-title {
    font-size: 28px;
  }
  
  .cta-row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 16px;
  }
  
  .card {
    padding: 20px;
    border-radius: 16px;
    max-width: 100%;
  }
  
  .card-title {
    font-size: 24px;
  }
  
  .card-head {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .requirements {
    font-size: 11px;
  }
  
  .cta-row {
    flex-direction: column;
    gap: 12px;
  }
}