.auth-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 34px;
  border: 1px solid rgba(227, 233, 243, 0.7);
}

.auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-eyebrow {
  margin: 0 0 6px;
  color: var(--ink-muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.auth-title {
  margin: 0 0 8px;
  font-size: 28px;
}

.auth-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-error {
  background: rgba(255, 94, 94, 0.12);
  color: #8f1f1f;
  border: 1px solid rgba(255, 94, 94, 0.35);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  text-align: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-weight: 600;
  font-size: 14px;
}

.input-field {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: #89a6d4;
  box-shadow: 0 0 0 3px rgba(137, 166, 212, 0.25);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(47, 63, 95, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.auth-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-muted);
  flex-wrap: wrap;
}

.auth-divider {
  color: var(--stroke);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.code-display {
  display: flex;
  justify-content: center;
  margin: 12px 0 18px;
}

.code-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
}

.code-panel {
  background: rgba(223, 231, 244, 0.45);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(223, 231, 244, 0.8);
  display: grid;
  gap: 12px;
}

.code-panel-header {
  text-align: center;
}

.code-title {
  margin: 0 0 4px;
  font-size: 16px;
}

.code-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.code-prefix {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--stroke);
}

.code-inputs {
  display: flex;
  gap: 8px;
}

.code-input {
  width: 38px;
  height: 46px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: #fff;
}

.code-input:focus {
  outline: none;
  border-color: #89a6d4;
  box-shadow: 0 0 0 3px rgba(137, 166, 212, 0.25);
}

@media (max-width: 720px) {
  .auth-card {
    padding: 28px 22px;
  }

  .code-row {
    flex-direction: column;
  }
}
