.auth-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.auth-header {
  padding: 28px 28px 0;
  text-align: center;
}

.auth-header .eyebrow {
  margin-bottom: 8px;
}

.auth-header h1 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.auth-body {
  padding: 24px 28px 28px;
}

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

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

.auth-field label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  background: rgba(5, 7, 9, 0.56);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}

.auth-field input:focus {
  border-color: rgba(66, 209, 163, 0.62);
}

.auth-field input::placeholder {
  color: var(--quiet);
}

.auth-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: #07110e;
  background: var(--green);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.auth-submit:disabled {
  opacity: 0.62;
  cursor: wait;
}

.auth-submit:hover:not(:disabled) {
  opacity: 0.9;
}

.auth-toggle {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.auth-toggle button {
  padding: 0;
  border: none;
  background: none;
  color: var(--green);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: none;
}

.auth-toggle button:hover {
  text-decoration: underline;
}

.auth-message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: center;
}

.auth-message.error {
  border-color: rgba(240, 109, 94, 0.42);
  background: rgba(240, 109, 94, 0.1);
  color: var(--red);
}

.auth-message.success {
  border-color: rgba(66, 209, 163, 0.38);
  background: rgba(66, 209, 163, 0.08);
  color: var(--green);
}

.auth-message.info {
  border-color: rgba(121, 168, 255, 0.34);
  background: rgba(121, 168, 255, 0.08);
  color: var(--blue);
}

.auth-message.pending {
  border-color: rgba(226, 182, 77, 0.42);
  background: rgba(226, 182, 77, 0.08);
  color: var(--amber);
}

.auth-divider {
  height: 1px;
  margin: 16px 0;
  background: var(--line);
}

.auth-view {
  display: none;
}

.auth-view.active {
  display: block;
}

.auth-forgot {
  margin-top: 8px;
  text-align: right;
}

.auth-forgot button {
  padding: 0;
  border: none;
  background: none;
  color: var(--quiet);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.auth-forgot button:hover {
  color: var(--green);
}

.auth-back {
  margin-bottom: 16px;
}

.auth-back button {
  padding: 0;
  border: none;
  background: none;
  color: var(--quiet);
  font: inherit;
  font-family: var(--mono);
  font-size: 0.76rem;
  cursor: pointer;
}

.auth-back button:hover {
  color: var(--green);
}

.auth-password-rules {
  margin: 0;
  padding: 0 0 0 16px;
  color: var(--quiet);
  font-size: 0.76rem;
  line-height: 1.6;
}

.auth-password-rules li.met {
  color: var(--green);
}

@media (max-width: 480px) {
  .auth-shell {
    padding: 12px;
    align-items: flex-start;
    padding-top: 48px;
  }

  .auth-header {
    padding: 24px 20px 0;
  }

  .auth-body {
    padding: 20px;
  }
}
