:root {
  --void: #030510;
  --deep: #050a18;
  --panel: #0c1424;
  --ink: #000b3d;
  --signal: #f4cc2f;
  --signal-deep: #c9a512;
  --ice: #e6ecfa;
  --mist: #8b9bb8;
  --glass: rgba(12, 20, 36, 0.82);
  --glass-border: rgba(244, 204, 47, 0.16);
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.42);
  --font-display: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.login-page {
  font-family: var(--font-body);
  color: var(--ice);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #02040c 0%, #050a18 38%, #000b3d 72%, #030818 100%);
  pointer-events: none;
}

.login-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.login-bg__glow--gold {
  width: 42vw;
  height: 42vw;
  top: -8%;
  right: -6%;
  background: rgba(244, 204, 47, 0.09);
}

.login-bg__glow--navy {
  width: 50vw;
  height: 50vw;
  bottom: -18%;
  left: -12%;
  background: rgba(0, 11, 61, 0.55);
}

.login-bg__watermark {
  position: absolute;
  left: -4%;
  top: 10%;
  width: min(520px, 70vw);
  opacity: 0.06;
  filter: saturate(0.9);
}

.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 2rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 1120px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .login-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 420px);
    gap: clamp(2rem, 5vw, 4rem);
    padding-inline: clamp(1.5rem, 4vw, 3rem);
  }
}

.login-hero {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 520px;
}

@media (min-width: 960px) {
  .login-hero {
    display: flex;
  }
}

.login-hero__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-hero__brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.login-hero__security,
.login-hero__plus {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.login-hero__security {
  font-size: 1.75rem;
  color: var(--ice);
}

.login-hero__plus {
  font-size: 1.75rem;
  color: var(--signal);
}

.login-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ice);
}

.login-hero__accent {
  color: var(--signal);
}

.login-hero__lead {
  margin: 0;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(200, 212, 232, 0.82);
}

.login-hero__features {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-hero__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #c8d4e8;
}

.login-hero__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(244, 204, 47, 0.12);
  border: 1px solid rgba(244, 204, 47, 0.28);
  color: var(--signal);
}

.login-hero__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: clamp(1.5rem, 4vw, 2rem);
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .login-card {
    background: #0c1424;
  }
}

.login-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.login-card__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.15rem;
}

.login-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ice);
}

.login-card__subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mist);
}

.login-card__intro {
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-card__intro h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ice);
}

.login-card__intro p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--mist);
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 92, 108, 0.12);
  border: 1px solid rgba(255, 92, 108, 0.4);
  color: #ffd0d4;
  font-size: 0.88rem;
  line-height: 1.45;
}

.login-alert svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #ff8a95;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.login-field {
  margin-bottom: 1rem;
}

.login-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(232, 240, 255, 0.9);
}

.login-input {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 155, 184, 0.22);
  background: rgba(4, 8, 18, 0.72);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input:focus-within {
  border-color: rgba(244, 204, 47, 0.55);
  box-shadow: 0 0 0 3px rgba(244, 204, 47, 0.12);
}

.login-input > svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--mist);
}

.login-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ice);
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 0;
}

.login-input input::placeholder {
  color: rgba(139, 155, 184, 0.75);
}

.login-input__toggle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.login-input__toggle:hover {
  color: var(--ice);
  background: rgba(255, 255, 255, 0.05);
}

.login-input__toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.login-input__toggle .icon-hide[hidden] {
  display: none;
}

.login-forgot {
  margin: -0.25rem 0 1.1rem;
  text-align: right;
}

.login-forgot a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--signal);
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-forgot a:hover {
  color: #ffe07a;
}

.login-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--signal);
  color: #0a1628;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(244, 204, 47, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-submit:hover {
  background: #ffe07a;
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(244, 204, 47, 0.34);
}

.login-submit:active {
  transform: scale(0.98);
}

.login-card__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(139, 155, 184, 0.2);
  font-size: 0.78rem;
  color: var(--mist);
}

.login-card__footer svg {
  width: 0.95rem;
  height: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .login-submit,
  .login-input,
  .login-forgot a,
  .login-input__toggle {
    transition: none;
  }

  .login-submit:hover {
    transform: none;
  }
}
