:root {
  color-scheme: dark;

  --bg: #05060b;
  --bg-2: #090b13;
  --panel: #0d111d;
  --panel-2: #121827;
  --card: #111624;
  --card-2: #171e2f;

  --line: rgba(232, 194, 105, 0.13);
  --border: rgba(232, 194, 105, 0.18);

  --text: #f8fafc;
  --muted: #a0a8b8;
  --soft: #d8dee9;

  --gold: #f2d58b;
  --gold-2: #f2d58b;
  --gold-3: #f2d58b;
  --gold-soft: rgba(216, 180, 106, 0.11);
  --gold-border: rgba(216, 180, 106, 0.34);

  --violet: #d8b46a;
  --cyan: #f2d58b;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --blue: #93c5fd;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --shadow-gold: 0 20px 52px rgba(216, 180, 106, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

body::before {
  content: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

body.login-body {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 180, 106, 0.12), transparent 30%),
    radial-gradient(circle at 84% 78%, rgba(72, 91, 142, 0.16), transparent 34%),
    var(--bg);
}

body.login-body::before,
body.login-body::after {
  position: fixed;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(242, 213, 139, 0.08);
  border-radius: 50%;
  content: '';
  pointer-events: none;
}

body.login-body::before {
  top: -150px;
  right: -90px;
}

body.login-body::after {
  bottom: -190px;
  left: -70px;
}

.login-shell {
  width: min(100%, 440px);
}

.login-card {
  position: relative;
  width: 100%;
  padding: 36px 34px 34px;
  overflow: hidden;
  border: 0;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17, 22, 36, 0.96), rgba(10, 13, 23, 0.97)),
    rgba(13, 17, 29, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52), 0 18px 45px rgba(216, 180, 106, 0.08);
  backdrop-filter: blur(24px);
}

.login-card::before {
  position: absolute;
  top: -86px;
  right: 50%;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 213, 139, 0.18), transparent 67%);
  content: '';
  transform: translateX(50%);
  pointer-events: none;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 0;
  border: 0;
  text-align: center;
}

.login-mark {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.login-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 35px rgba(216, 180, 106, 0.22));
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 0;
  background: linear-gradient(135deg, #fff8dc, #f2d58b 56%, #c9912c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-brand span {
  margin-top: 6px;
  color: rgba(216, 180, 106, 0.78);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-heading {
  margin: 24px 0 24px;
  text-align: center;
}

.login-title {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 31px;
  letter-spacing: 0;
}

.login-subtitle {
  max-width: 330px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.password-field {
  position: relative;
}

.password-field .input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--gold);
}

.password-toggle svg {
  width: 19px;
  height: 19px;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: var(--gold-soft);
  outline: none;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.login-success .login-card {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.error-box {
  border: 1px solid rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.11);
  color: #fecdd3;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(216, 180, 106, 0.38);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(216, 180, 106, 0.58);
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
}
