/* version 1.1 */
:root {
  --auth-bg: #050505;
  --auth-panel: rgba(17, 17, 17, 0.82);
  --auth-border: rgba(255, 106, 0, 0.5);
  --auth-text: #ffffff;
  --auth-muted: rgba(255, 255, 255, 0.58);
  --auth-accent: #ff6a00;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--auth-text);
  background:
    radial-gradient(ellipse 90% 55% at 100% 100%, rgba(255, 106, 0, 0.38), transparent 72%),
    linear-gradient(155deg, #030303 0%, #0b0705 58%, #170a03 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  width: min(100%, 430px);
}

.auth-brand {
  margin-bottom: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.auth-panel {
  padding: 28px;
  border: 1px solid var(--auth-border);
  border-radius: 28px;
  background: var(--auth-panel);
  backdrop-filter: blur(18px);
}

.auth-title {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-field label {
  font-size: 11px;
  color: var(--auth-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--auth-text);
  background: rgba(255, 255, 255, 0.055);
  font: inherit;
  outline: none;
}

.auth-field input:focus {
  border-color: var(--auth-accent);
}

.auth-submit {
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  color: #ffffff;
  background: var(--auth-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-switch {
  display: block;
  width: 100%;
  margin-top: 24px;
  border: 0;
  padding: 8px;
  color: var(--auth-muted);
  background: transparent;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.auth-message {
  min-height: 20px;
  margin-top: 14px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-message[data-state="error"] {
  color: #ff8c66;
}
