:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #141100;
  color: #fbfaf7;
  --green: #ffdc2c;
  --green-soft: #ffe667;
  --panel: rgba(25, 21, 0, .86);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 48% 65% at 88% 96%, rgba(183, 153, 0, .38), transparent 68%),
    radial-gradient(ellipse 45% 58% at 9% 44%, rgba(135, 113, 0, .2), transparent 69%),
    linear-gradient(112deg, #1c1700 0%, #100d00 48%, #171300 100%);
}

button, input { font: inherit; }

.background-art,
.background-art > * {
  position: fixed;
  pointer-events: none;
}

.background-art {
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.arc {
  display: block;
  border-radius: 50%;
}

.arc-left-main {
  width: min(70vw, 1160px);
  height: min(70vw, 1160px);
  left: min(-37vw, -575px);
  bottom: min(-48vw, -720px);
  border: 1px solid rgba(255, 218, 35, .95);
  background: radial-gradient(circle at 66% 29%, rgba(255, 217, 29, .98) 0, rgba(223, 186, 0, .46) 6%, rgba(101, 84, 0, .13) 30%, transparent 61%);
  box-shadow: inset 0 0 44px rgba(255, 217, 26, .2), 0 0 24px rgba(255, 217, 24, .15);
}

.arc-left-line {
  width: min(89vw, 1510px);
  height: min(89vw, 1510px);
  left: min(-50vw, -830px);
  bottom: min(-50vw, -820px);
  border: 1px solid rgba(188, 160, 20, .55);
}

.arc-right-main {
  width: min(64vw, 1040px);
  height: min(64vw, 1040px);
  right: min(-27vw, -390px);
  top: min(-44vw, -650px);
  border: 1px solid rgba(255, 219, 36, .98);
  background: radial-gradient(circle at 18% 78%, rgba(255, 217, 25, .9) 0, rgba(197, 164, 0, .42) 7%, rgba(96, 80, 0, .12) 29%, transparent 63%);
  box-shadow: inset 0 0 42px rgba(255, 218, 30, .2), 0 0 22px rgba(255, 216, 21, .16);
}

.arc-right-line {
  width: min(82vw, 1370px);
  height: min(82vw, 1370px);
  right: min(-42vw, -690px);
  top: min(-54vw, -790px);
  border: 1px solid rgba(177, 151, 18, .56);
}

.green-glow {
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .24;
}

.green-glow-left {
  width: 460px;
  height: 460px;
  left: -250px;
  bottom: -160px;
  background: #ffd816;
}

.green-glow-right {
  width: 600px;
  height: 420px;
  right: -160px;
  bottom: -190px;
  background: #dfbb08;
}

.dot-grid {
  width: 82px;
  height: 164px;
  opacity: .9;
  background-image: radial-gradient(circle, #f6d322 1.35px, transparent 1.7px);
  background-size: 20px 20px;
}

.dot-grid-top { top: 118px; right: 74px; }
.dot-grid-bottom { left: 74px; bottom: 102px; height: 150px; }

.side-copy {
  position: fixed;
  z-index: 1;
  color: rgba(235, 231, 213, .82);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .38em;
  line-height: 1.75;
}

.side-copy p { margin: 0; }

.side-copy span {
  display: block;
  width: 28px;
  height: 5px;
  background: var(--green-soft);
  box-shadow: 0 0 14px rgba(255, 220, 44, .5);
}

.side-copy-left { top: 61px; left: 73px; }
.side-copy-left span { margin: 34px 0 24px; }

.side-copy-right {
  right: 74px;
  bottom: 82px;
  text-align: right;
}

.side-copy-right span { margin: 17px 0 0 auto; }

.login-layout {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 60px 18px;
}

.login-card {
  width: min(100%, 514px);
  padding: 39px 43px 29px;
  border: 1px solid rgba(255, 220, 45, .9);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(40, 34, 3, .72), rgba(17, 14, 0, .9)), var(--panel);
  box-shadow: 0 0 34px rgba(255, 217, 27, .12), inset 0 1px 0 rgba(255, 235, 137, .07), 0 30px 90px rgba(0, 0, 0, .36);
  backdrop-filter: blur(18px);
}

.login-header { text-align: center; }

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  filter: drop-shadow(0 0 13px rgba(255, 220, 44, .48));
}

.brand-mark span {
  position: absolute;
  width: 17px;
  height: 43px;
  border-radius: 3px;
  background: linear-gradient(150deg, #ffe875 0%, #f7d425 58%, #bea008 100%);
  transform: rotate(45deg);
  box-shadow: 0 0 15px rgba(255, 220, 44, .28);
}

.brand-mark span:first-child { left: 14px; top: 3px; }
.brand-mark span:last-child { right: 10px; bottom: 1px; }

.eyebrow {
  margin: 0 0 9px;
  color: var(--green-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .19em;
}

h1 {
  margin: 0;
  color: #f9f9f7;
  font-size: clamp(32px, 3vw, 41px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .98;
}

h1 strong { color: var(--green-soft); font-weight: 800; }

.intro {
  margin: 14px 0 25px;
  color: rgba(247, 246, 240, .88);
  font-size: 15px;
  line-height: 1.42;
}

label {
  display: block;
  margin: 0 0 8px;
  color: #f5f4f1;
  font-size: 13px;
  font-weight: 750;
}

.field-shell { position: relative; margin-bottom: 19px; }

.field-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 21px;
  height: 21px;
  transform: translateY(-50%);
  fill: none;
  stroke: #e4e2d7;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

input {
  width: 100%;
  height: 51px;
  margin: 0;
  padding: 0 15px 0 49px;
  border: 1px solid rgba(178, 163, 89, .52);
  border-radius: 12px;
  outline: none;
  background: rgba(19, 16, 0, .57);
  color: #fff;
  caret-color: var(--green);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

input::placeholder { color: #8b8876; opacity: 1; }
input:hover { border-color: rgba(221, 199, 86, .7); }

input:focus {
  border-color: var(--green);
  background: rgba(27, 23, 0, .78);
  box-shadow: 0 0 0 3px rgba(255, 220, 44, .11), 0 0 18px rgba(255, 220, 44, .1);
}

.password-label { display: flex; align-items: center; justify-content: space-between; }

.text-button {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.text-button:hover,
.text-button:focus-visible { color: #fff0a2; }

.message {
  margin: -6px 0 13px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 104, 104, .28);
  border-radius: 8px;
  background: rgba(111, 18, 18, .22);
  color: #ffb0aa;
  font-size: 12px;
  line-height: 1.4;
}

.message:empty { display: none; }

.submit-button {
  position: relative;
  width: 100%;
  min-height: 55px;
  margin-top: 1px;
  padding: 0 60px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(104deg, #eecb19 0%, #ffdf3d 51%, #dfbf21 100%);
  color: #171400;
  cursor: pointer;
  font-size: 15px;
  font-weight: 850;
  text-shadow: none;
  box-shadow: 0 10px 28px rgba(222, 187, 14, .21), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.submit-icon {
  position: absolute;
  top: 50%;
  right: 30%;
  width: 22px;
  height: 22px;
  transform: translate(36px, -50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-button:hover {
  filter: brightness(1.07);
  box-shadow: 0 13px 34px rgba(238, 201, 14, .29), inset 0 1px 0 rgba(255, 255, 255, .3);
  transform: translateY(-1px);
}

.submit-button:focus-visible,
.text-button:focus-visible { outline: 2px solid #fff5c2; outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }

.security-note {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding: 14px 16px 14px 14px;
  border: 1px solid rgba(137, 126, 68, .3);
  border-radius: 12px;
  background: rgba(45, 39, 6, .45);
  color: #bdbbae;
  font-size: 12px;
  line-height: 1.5;
}

.security-note p { margin: 0; }
.security-note strong { color: #f6f5f2; }

.security-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(99, 85, 13, .34);
  box-shadow: 0 0 20px rgba(255, 218, 35, .08);
}

.security-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 29px;
  color: rgba(230, 227, 211, .8);
  font-size: 9px;
  letter-spacing: .28em;
  white-space: nowrap;
}

.card-footer i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(255, 220, 44, .8);
}

.footer-line {
  width: 49px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 190, 137, .6));
}

.footer-line:last-child { transform: scaleX(-1); }

@media (max-width: 900px) {
  .side-copy,
  .dot-grid { display: none; }

  .arc-left-main { width: 950px; height: 950px; left: -720px; bottom: -550px; }
  .arc-left-line { width: 1050px; height: 1050px; left: -800px; bottom: -560px; }
  .arc-right-main { width: 820px; height: 820px; right: -610px; top: -490px; }
  .arc-right-line { width: 950px; height: 950px; right: -715px; top: -535px; }
}

@media (max-width: 560px) {
  body {
    background:
      radial-gradient(ellipse 85% 40% at 100% 100%, rgba(179, 149, 0, .22), transparent 72%),
      radial-gradient(ellipse 70% 38% at 0% 8%, rgba(148, 123, 0, .16), transparent 75%),
      #151200;
  }

  .login-layout {
    align-items: center;
    padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  }

  .login-card {
    width: 100%;
    padding: 29px 20px 22px;
    border-radius: 18px;
    backdrop-filter: blur(14px);
  }

  .brand-mark { width: 50px; height: 50px; margin-bottom: 11px; }
  .brand-mark span { width: 15px; height: 37px; }
  .brand-mark span:first-child { left: 12px; }
  .brand-mark span:last-child { right: 9px; }
  h1 { font-size: clamp(31px, 10vw, 38px); }
  .intro { margin-bottom: 23px; font-size: 14px; }
  .desktop-break { display: none; }
  input { height: 52px; }
  .submit-button { min-height: 54px; padding: 0 44px 0 24px; }
  .submit-icon { right: 22%; transform: translate(25px, -50%); }

  .security-note {
    align-items: flex-start;
    margin-top: 21px;
    padding: 13px;
  }

  .security-icon { width: 42px; height: 42px; }

  .card-footer {
    gap: 8px;
    margin-top: 23px;
    font-size: 7px;
    letter-spacing: .18em;
  }

  .footer-line { width: 25px; }
}

@media (max-height: 760px) and (min-width: 561px) {
  .login-layout { padding-top: 24px; padding-bottom: 24px; }
  .login-card { padding-top: 28px; padding-bottom: 23px; }
  .brand-mark { width: 48px; height: 48px; margin-bottom: 8px; }
  .brand-mark span { width: 14px; height: 35px; }
  .intro { margin-bottom: 18px; }
  .field-shell { margin-bottom: 14px; }
  .security-note { margin-top: 18px; }
  .card-footer { margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
