:root {
  --bg: #efeae4;
  --card: rgba(255, 255, 255, 0.6);
  --ink: #1f2328;
  --muted: #6b7280;
  --accent: #009999;
  --accent-dark: #007777;
  --shadow: 0 10px 40px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.3px);
}
.orb-lg {
  width: 420px;
  height: 420px;
  left: -120px;
  bottom: -100px;
  background: radial-gradient(circle at 60% 40%, #d8e7ff, #a1b9ff 45%, #7aa0ff 60%, #6086ff 75%, #5176ff 90%);
}
.orb-md {
  width: 220px;
  height: 220px;
  right: 12%;
  top: 12%;
  background: radial-gradient(circle, #ffffff 0%, #cdefff 50%, #8ab1ff 100%);
  opacity: .7;
}
.orb-sm {
  width: 120px;
  height: 120px;
  right: 4%;
  bottom: 14%;
  background: radial-gradient(circle, #ffffff 0%, #d0e6ff 60%, #9fc1ff 100%);
  opacity: .8;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 24px;
}

.card {
  background: var(--card);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px 26px 24px;
}

.card + .card {
  margin-top: 20px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  object-fit: cover;
}
.brand {
  font-weight: 600;
}

.link {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}
.link.inline {
  font-weight: 500;
}

.title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 4px;
}
.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-label {
  font-size: 13px;
  color: var(--muted);
}

input[type="email"],
input[type="password"],
input[type="text"] {
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 15px;
  width: 100%;
}
input:focus {
  outline: none;
  border-color: rgba(0,153,153,.5);
  box-shadow: 0 0 0 3px rgba(0,153,153,.12);
}

.password-row {
  position: relative;
}
.icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: .7;
  font-size: 16px;
}

.btn {
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}

.btn.primary {
  background: #000;
  color: #fff;
  transition: .2s ease;
}
.btn.primary:hover {
  filter: brightness(0.92);
}

.footer-text {
  font-size: 13px;
  color: var(--muted);
}

.alert {
  background: rgba(244,63,94,.1);
  border: 1px solid rgba(244,63,94,.3);
  color: #b91c1c;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 8px;
}
.alert.success {
  background: rgba(22,163,74,.12);
  border-color: rgba(22,163,74,.4);
  color: #166534;
}

.requirements {
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 6px 10px 6px 14px;
  display: grid;
  gap: 3px;
}
.req {
  font-size: 12px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.req.valid {
  color: #15803d;
}
.req.invalid {
  color: #b91c1c;
}

.small-error {
  font-size: 12px;
  color: #b91c1c;
}

/* toast container (simple, to match js) */
.toast-container {
  position: fixed;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
}
.toast {
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: .2s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success { background: #166534; }
.toast.error { background: #b91c1c; }
.toast .toast-close {
  cursor: pointer;
}

/* responsive */
@media (max-width: 520px) {
  .wrap { padding: 16px; }
  .card { border-radius: 22px; }
}
