:root {
  --auth-bg: #eef2ff;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(108, 76, 241, 0.08), transparent 28%), var(--auth-bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(520px, 100%);
  background: var(--surface);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(108, 76, 241, 0.12);
  overflow: hidden;
  border: 1px solid rgba(108, 76, 241, 0.12);
}

.auth-header {
  padding: 32px 32px 20px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(108, 76, 241, 0.12), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(108, 76, 241, 0.18), rgba(139, 92, 246, 0.2));
  font-weight: 800;
  color: var(--primary);
}

.brand-text .name {
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-text .tagline {
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-body {
  padding: 32px;
  display: grid;
  gap: 24px;
}

.auth-body h1 {
  font-size: 2rem;
  line-height: 1.05;
}

.auth-body p {
  color: var(--muted);
}

.form-group {
  display: grid;
  gap: 10px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
}

.input-field {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(108, 76, 241, 0.12);
  background: var(--surface-soft);
}

.input-field svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.input-field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.input-field input::placeholder {
  color: var(--muted);
}

.password-controls {
  position: relative;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.link-text {
  color: var(--primary);
  font-weight: 600;
}

.button-group {
  display: grid;
  gap: 16px;
}

.btn-auth {
  min-height: 56px;
  border-radius: 999px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: white;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-auth:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(108, 76, 241, 0.2);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(108, 76, 241, 0.16);
  background: var(--surface);
  color: var(--text);
}

.btn-google img {
  width: 22px;
  height: 22px;
}

.divider {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.divider::before,
.divider::after {
  content: "";
  width: 100%;
  height: 1px;
  background: rgba(108, 76, 241, 0.12);
}

.divider::before {
  margin-right: 16px;
}

.divider::after {
  margin-left: 16px;
}

.signup-row {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.signup-row a {
  color: var(--primary);
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--surface);
  padding: 16px 22px;
  border-radius: 18px;
  border: 1px solid rgba(108, 76, 241, 0.14);
  box-shadow: 0 20px 50px rgba(108, 76, 241, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-8px);
}

.toast strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .auth-card {
    width: 100%;
  }
  .auth-body {
    padding: 24px;
  }
}
