/* Shared styles for login / register / forgot password pages (light theme) */
:root {
  --bg: #f6f9fd;
  --card: #fff;
  --ink: #0f1b33;
  --mute: #5a6578;
  --line: #dfe7f2;
  --brand: #0363aa;
  --brand2: #0a8ae6;
  --accent: #e8262b;
  --soft: #eaf3fc;
  --ok: #0b7a43;
  --okbg: #dcf5e7;
  --err: #a11;
  --errbg: #fde4e4;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body.auth {
  font:
    16px/1.6 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px;
  position: relative;
  overflow-x: hidden;
}
body.auth:before,
body.auth:after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  z-index: -1;
  animation: float 14s ease-in-out infinite;
}
body.auth:before {
  width: 340px;
  height: 340px;
  background: #bfe0fb;
  top: -90px;
  right: -70px;
}
body.auth:after {
  width: 280px;
  height: 280px;
  background: #ffd3d4;
  bottom: -70px;
  left: -60px;
  animation-delay: -6s;
}
@keyframes float {
  50% {
    transform: translate(22px, -26px) scale(1.07);
  }
}
a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.home {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--ink);
  margin-bottom: 18px;
}
.home img {
  height: 46px;
}
.home:hover {
  text-decoration: none;
}
.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: 0 24px 50px rgba(15, 27, 51, 0.09);
  animation: rise 0.6s ease both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.card.narrow {
  max-width: 430px;
}
h1 {
  font-size: 25px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.lead {
  color: var(--mute);
  margin-bottom: 20px;
  font-size: 15px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 14px 0 6px;
}
label small {
  font-weight: 400;
  color: var(--mute);
}
input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: 0.2s;
}
input:focus,
select:focus {
  outline: 0;
  border-color: var(--brand2);
  box-shadow: 0 0 0 4px rgba(10, 138, 230, 0.14);
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pw {
  position: relative;
}
.pw button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}
.btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 20px rgba(3, 99, 170, 0.28);
  transition: 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 14px;
}
.alert.error {
  background: var(--errbg);
  color: var(--err);
}
.alert.success {
  background: var(--okbg);
  color: var(--ok);
}
.alert ul {
  margin: 4px 0 0 18px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 14px;
  color: var(--mute);
}
.check input {
  width: auto;
  margin-top: 4px;
}
.links {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 14px;
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.auth-foot {
  margin-top: 22px;
  font-size: 13px;
  color: var(--mute);
  text-align: center;
}
@media (max-width: 520px) {
  .card {
    padding: 24px 20px;
  }
  .row2 {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
