:root {
  color-scheme: light;
  --arcade-mint: #58c9ab;
  --arcade-mint-deep: #2d927c;
  --arcade-coral: #ef7272;
  --arcade-yellow: #f0c956;
  --arcade-line: #bfd1c7;
  --arcade-ink: #35423e;
}

body {
  color: var(--arcade-ink) !important;
  background-color: #f3f6ef !important;
  background-image:
    linear-gradient(rgba(87, 153, 126, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 153, 126, 0.09) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
}

.login-shell {
  gap: 18px !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.82fr) !important;
}

.brand-panel,
.auth-card {
  position: relative;
  overflow: hidden;
  color: var(--arcade-ink) !important;
  border: 1px solid var(--arcade-line) !important;
  border-radius: 7px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), transparent 80px),
    #fffef9 !important;
  box-shadow: 7px 7px 0 #d9e8df, 0 16px 34px rgba(58, 94, 79, 0.1) !important;
}

.brand-panel::before,
.auth-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 14px;
  border-top: 3px solid var(--arcade-mint);
  border-left: 3px solid var(--arcade-mint);
  pointer-events: none;
}

.brand-panel::after,
.auth-card::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 14px;
  border-right: 3px solid var(--arcade-yellow);
  border-bottom: 3px solid var(--arcade-yellow);
  pointer-events: none;
}

.brand-visual {
  position: relative;
  height: 245px !important;
  overflow: hidden;
  border-bottom: 1px solid var(--arcade-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent),
    repeating-linear-gradient(90deg, #58c9ab 0 34px, #48b99a 34px 38px, #67d1b5 38px 72px) !important;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.22) !important;
}

.brand-visual img {
  display: none !important;
}

.brand-visual::before {
  content: "HIGH SCORE  00202405";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82%, 560px);
  padding: 24px 22px 58px;
  color: #fff8bd;
  border: 2px solid #2e8671;
  border-radius: 5px;
  background: rgba(42, 119, 100, 0.72);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.18), 5px 5px 0 rgba(33, 101, 83, 0.18);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(17px, 2vw, 27px);
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
  letter-spacing: 2px;
  transform: translate(-50%, -50%);
}

.brand-visual::after {
  content: "1UP   FUYU   CREDIT 098   ♥ ♥ ♥";
  position: absolute;
  left: 50%;
  top: calc(50% + 40px);
  width: min(76%, 520px);
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(11px, 1.25vw, 16px);
  line-height: 1.4;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1px;
  transform: translateX(-50%);
}

.brand-mark {
  width: 48px !important;
  height: 48px !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  border-radius: 3px !important;
  outline: 1px solid var(--arcade-mint-deep);
  background: var(--arcade-mint) !important;
  box-shadow: 4px 4px 0 #d6ede4 !important;
  clip-path: polygon(0 0, 74% 0, 74% 10%, 90% 10%, 90% 26%, 100% 26%, 100% 100%, 26% 100%, 26% 90%, 10% 90%, 10% 74%, 0 74%) !important;
  font-family: Consolas, monospace;
}

.eyebrow {
  color: var(--arcade-mint-deep) !important;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 1px;
}

h1,
strong {
  color: var(--arcade-ink) !important;
}

p,
label,
.tabs button,
.login-method span,
.notice span,
.feature-grid span {
  color: #73817b !important;
}

.feature-grid div,
.notice,
.tabs,
.login-method,
.dev-code {
  color: var(--arcade-ink) !important;
  border: 1px solid #c4d6cc !important;
  border-radius: 5px !important;
  background: #f5faf6 !important;
  box-shadow: none !important;
}

.feature-grid div:nth-child(2),
.feature-grid div:nth-child(3) {
  border-top: 3px solid var(--arcade-yellow) !important;
}

.feature-grid div:nth-child(1),
.feature-grid div:nth-child(4) {
  border-top: 3px solid var(--arcade-mint) !important;
}

.tabs button,
.login-method button,
.primary-btn,
.ghost-btn {
  min-height: 38px;
  border-radius: 5px !important;
  font-weight: 800 !important;
}

.tabs button.active,
.primary-btn,
.login-method button.active {
  color: #fff !important;
  border-color: #32957c !important;
  background: var(--arcade-mint) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.24), 2px 2px 0 #c8e8dc !important;
}

.ghost-btn,
.login-method button {
  color: #347d6b !important;
  border-color: #b7cfc3 !important;
  background: #fffef9 !important;
}

input,
select {
  min-height: 42px;
  color: var(--arcade-ink) !important;
  border: 1px solid #b7cbc0 !important;
  border-radius: 5px !important;
  background: #fffef9 !important;
  box-shadow: inset 3px 0 0 #e0f3eb !important;
}

input::placeholder {
  color: #9ba8a2 !important;
}

input:focus,
select:focus {
  border-color: var(--arcade-mint) !important;
  box-shadow: 0 0 0 3px rgba(88, 201, 171, 0.14), inset 3px 0 0 #def3eb !important;
}

.dev-code,
label small {
  color: #347d6b !important;
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr !important;
  }

  .brand-visual {
    height: 210px !important;
  }
}

@media (max-width: 520px) {
  .login-shell {
    width: min(100% - 24px, 1180px);
    padding: 12px 0 24px;
  }

  .brand-panel,
  .auth-card {
    padding: 22px;
    box-shadow: 4px 4px 0 #d9e8df, 0 12px 24px rgba(58, 94, 79, 0.09) !important;
  }

  .brand-visual {
    height: 180px !important;
    margin: -22px -22px 20px;
  }
}
