/* auth.css — giao diện đăng nhập / đăng ký (dùng chung login.html + signup.html) */
:root {
  --a-accent: #5b4dff;
  --a-accent-2: #7c6bff;
  --a-ink: #16161a;
  --a-ink-soft: #6b6b78;
  --a-line: #e7e7ef;
  --a-card: #ffffff;
  --a-red: #dc2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: -apple-system, "Inter", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--a-ink);
  background:
    radial-gradient(1100px 520px at 50% -10%, #ece9ff 0%, rgba(236,233,255,0) 60%),
    radial-gradient(800px 480px at 100% 110%, #e6f0ff 0%, rgba(230,240,255,0) 55%),
    #f5f5fa;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--a-card);
  border: 1px solid var(--a-line);
  border-radius: 22px;
  padding: 38px 34px 30px;
  box-shadow:
    0 1px 2px rgba(20,20,40,.04),
    0 12px 32px -12px rgba(50,40,120,.18);
}

.auth-logo {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  background: linear-gradient(135deg, var(--a-accent), var(--a-accent-2));
  box-shadow: 0 8px 20px -6px rgba(91,77,255,.55);
}

.auth-brand {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--a-accent);
  margin-bottom: 22px;
}

.auth-card h1 {
  text-align: center;
  font-size: 23px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.auth-sub {
  text-align: center;
  color: var(--a-ink-soft);
  font-size: 14px;
  margin: 0 0 24px;
}

.auth-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 6px;
}
.auth-card label .muted { font-weight: 400; color: var(--a-ink-soft); }

.auth-card input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--a-line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fbfbfe;
  color: var(--a-ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-card input::placeholder { color: #b3b3c2; }
.auth-card input:focus {
  outline: none;
  border-color: var(--a-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91,77,255,.14);
}

.auth-btn {
  width: 100%;
  margin-top: 26px;
  border: none;
  padding: 14px;
  border-radius: 13px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--a-accent), var(--a-accent-2));
  box-shadow: 0 10px 22px -10px rgba(91,77,255,.7);
  transition: transform .1s ease, box-shadow .15s ease, opacity .15s;
}
.auth-btn:hover { box-shadow: 0 14px 26px -10px rgba(91,77,255,.8); transform: translateY(-1px); }
.auth-btn:active { transform: translateY(0); opacity: .95; }

.auth-err {
  display: none;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #fdecec;
  border: 1px solid #f7cccc;
  color: var(--a-red);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.auth-foot {
  text-align: center;
  margin: 22px 0 0;
  font-size: 13.5px;
  color: var(--a-ink-soft);
}
.auth-foot a {
  color: var(--a-accent);
  font-weight: 700;
  text-decoration: none;
}
.auth-foot a:hover { text-decoration: underline; }
