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

body {
  font-family: 'Nunito', sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.page {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.back-link {
  align-self: flex-start;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { color: #7c3aed; }

.card {
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(124,58,237,0.12);
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.logo-icon { font-size: 1.8rem; }

.logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: #7c3aed;
  letter-spacing: -0.02em;
}

.card-sub {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Tabs */
.tabs {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 9px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: #94a3b8;
  transition: all 0.2s;
}

.tab.active {
  background: white;
  color: #7c3aed;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Banner */
.banner {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.banner.error   { background: #fee2e2; color: #991b1b; }
.banner.success { background: #d1fae5; color: #065f46; }

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  background: white;
  transition: border-color 0.2s;
  outline: none;
}

input:focus { border-color: #7c3aed; }

.pw-wrap {
  position: relative;
}

.pw-wrap input { padding-right: 46px; }

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* Submit */
.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

.submit-btn:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.95; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
