:root {
  --bg: #e6edf3;
  --card: #e9f0f5;
  --muted: #8b98a6;
  --accent: #6c8ef6;
  --shadow-dark: rgba(160, 175, 195, 0.22);
  --shadow-light: rgba(255, 255, 255, 0.9);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body.auth-body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: linear-gradient(145deg, var(--bg), #f3f7fb);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}
.auth-wrap {
  width: 100%;
  max-width: 980px;
  padding: 40px;
}
.auth-card {
  margin: auto;
  width: 420px;
  background: var(--card);
  border-radius: 18px;
  padding: 32px 32px 26px;
  box-shadow:
    16px 16px 32px var(--shadow-dark),
    -12px -12px 24px var(--shadow-light);
  display: block;
}
.auth-title {
  font-size: 20px;
  margin: 0 0 12px;
  color: #132233;
}
.auth-form {
  display: block;
}
.form-row {
  position: relative;
  margin-bottom: 18px;
}
.form-row input {
  width: 100%;
  padding: 14px 44px 14px 14px;
  border-radius: 12px;
  border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
  box-shadow:
    inset 6px 6px 12px rgba(0, 0, 0, 0.04),
    inset -6px -6px 12px rgba(255, 255, 255, 0.8);
  outline: none;
  font-size: 14px;
  color: #123;
  transition:
    box-shadow 0.18s,
    transform 0.12s;
}
.form-row label {
  position: absolute;
  left: 14px;
  top: 12px;
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
  transition: all 0.18s ease;
}
.form-row input:focus {
  box-shadow:
    inset 2px 2px 6px rgba(0, 0, 0, 0.06),
    6px 6px 18px rgba(100, 120, 180, 0.08);
  transform: translateY(-1px);
}
.form-row input:focus + label,
.form-row input:not(:placeholder-shown) + label {
  transform: translateY(-22px) scale(0.94);
  color: var(--accent);
}
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle:hover {
  color: var(--accent);
  background: rgba(108, 142, 246, 0.1);
}
.password-toggle svg {
  pointer-events: none;
}
.auth-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-auth {
  appearance: none;
  border: 0;
  background: linear-gradient(180deg, var(--accent), #547bf0);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 6px 8px 18px rgba(108, 142, 246, 0.24);
  font-weight: 600;
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(100, 120, 180, 0.08);
}
.auth-switch {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}
.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.small-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.nav-auth {
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent;
}
.back-btn {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}
.back-btn:hover {
  transform: translateX(-4px);
}

@media (max-width: 520px) {
  .auth-card {
    width: 92%;
    padding: 22px;
  }
}
