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

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

body {
  font-family: 'Poppins', sans-serif;
  background: #0d0d0d; color: #fff;
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 24px; -webkit-font-smoothing: antialiased;
}

.page { max-width: 380px; width: 100%; animation: enter 0.4s ease; }

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

.back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: #999;
  font-size: 14px; text-decoration: none;
  margin-bottom: 28px; transition: background 0.2s;
}
.back:hover { background: rgba(255,255,255,0.1); }

h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; }
.sub { font-size: 14px; color: #666; margin-bottom: 24px; }

.error-msg {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
  color: #ef4444; padding: 12px 16px; border-radius: 12px;
  font-size: 13px; margin-bottom: 20px; line-height: 1.5;
}

.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: #888; }

.field input, .field select {
  padding: 12px 14px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; font-size: 14px;
  font-family: 'Poppins', sans-serif; outline: none;
  background: rgba(255,255,255,0.04); color: #fff;
  transition: border 0.2s;
}
.field input:focus { border-color: #a855f7; }
.field input::placeholder { color: #444; }

.input-wrap { position: relative; display: flex; }
.input-wrap input { width: 100%; padding-right: 44px; }

.toggle {
  position: absolute; right: 0; top: 0; bottom: 0; width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #555; cursor: pointer; font-size: 14px;
}

.btn {
  padding: 14px 0; border-radius: 14px;
  font-size: 14px; font-weight: 600;
  font-family: 'Poppins', sans-serif; cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; border: none; margin-top: 6px;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(168,85,247,0.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(168,85,247,0.4); }

.link { text-align: center; margin-top: 24px; font-size: 13px; color: #666; }
.link a { color: #a855f7; font-weight: 600; text-decoration: none; }
.link a:hover { text-decoration: underline; }
