:root {
  --auth-bg: #0c0c0c;
  --auth-text: #f2f2f2;
  --auth-muted: rgba(242, 242, 242, 0.45);
  --auth-line: rgba(255, 255, 255, 0.18);
  --auth-line-hot: rgba(255, 255, 255, 0.42);
  --auth-mono: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

body.auth-login-body {
  min-height: 100vh;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: var(--auth-mono);
  overflow-x: hidden;
}

button,
a,
code {
  font: inherit;
}

.auth-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0 12px 20px;
}

.ricky-login {
  width: min(1280px, 100%);
  display: grid;
  justify-items: center;
  gap: 7px;
}

.ricky-login-art {
  position: relative;
  width: min(1280px, 100%);
  user-select: none;
}

.ricky-login-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 70px);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.ricky-login-actions {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 24px;
}

.ricky-login-button {
  display: inline-grid;
  place-items: center;
  min-width: 86px;
  min-height: 24px;
  padding: 3px 12px;
  border: 1px solid var(--auth-line);
  background: rgba(12, 12, 12, 0.78);
  color: rgba(242, 242, 242, 0.82);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}

.ricky-login-button:hover,
.ricky-login-button:focus-visible {
  border-color: var(--auth-line-hot);
  color: var(--auth-text);
  outline: 1px solid var(--auth-line-hot);
  outline-offset: 2px;
}

.ricky-login-button[aria-disabled="true"] {
  opacity: 0.46;
  pointer-events: none;
}

.auth-status-line {
  min-height: 14px;
  color: var(--auth-muted);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
}

.auth-status-line[hidden] {
  display: none;
}

.auth-status-line[data-state="success"] {
  color: rgba(118, 222, 143, 0.9);
}

.auth-status-line[data-state="warning"] {
  color: rgba(255, 211, 118, 0.9);
}

.auth-status-line[data-state="error"],
.ricky-login-error {
  color: rgba(255, 116, 116, 0.9);
}

.auth-command-code {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ricky-login-error {
  display: grid;
  justify-items: center;
  gap: 5px;
  max-width: min(480px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(255, 116, 116, 0.28);
  background: rgba(12, 12, 12, 0.8);
  text-align: center;
  font-size: 10px;
  line-height: 1.35;
}

.ricky-login-error strong {
  color: rgba(255, 170, 170, 0.95);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .auth-login-page {
    align-items: center;
    padding: 0 8px 14px;
  }

  .ricky-login {
    gap: 6px;
  }

  .ricky-login-button {
    min-height: 24px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .auth-status-line {
    max-width: 260px;
  }
}
