:root {
  --auth-net-bg: #ffffff;
  --auth-net-border: #e5e7eb;
  --auth-net-border-strong: #d1d5db;
  --auth-net-text: #111827;
  --auth-net-subtext: #6b7280;
  --auth-net-focus: #006aff;
  --auth-net-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  --auth-net-radius: 14px;
}

.auth-net-form {
  max-width: 440px;
  margin: auto;
  background: var(--auth-net-bg);
  border: 1px solid var(--auth-net-border);
  border-radius: var(--auth-net-radius);
  padding: 18px;
  box-shadow: var(--auth-net-shadow);
}

.auth-net-row {
  margin-bottom: 14px;
}

.auth-net-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-net-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-net-subtext);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.auth-net-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--auth-net-border-strong);
  background: #fff;
  color: var(--auth-net-text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease,
    transform 0.08s ease;
  box-sizing: border-box;
}

.auth-net-input::placeholder {
  color: #9ca3af;
}

.auth-net-input:focus {
  border-color: var(--auth-net-focus);
  box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.18);
}

.auth-net-input:active {
  transform: translateY(0.5px);
}

.auth-net-button {
  width: 100%;
  height: 46px;
  border: 1px solid #0b1220;
  border-radius: 12px;
  background: #0b1220;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.auth-net-button:hover {
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.18);
}

.auth-net-button:active {
  transform: translateY(1px);
}

.auth-net-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-net-msg {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.auth-net-msg.error {
  color: #b42318;
}

.auth-net-msg.ok {
  color: #067647;
}

.auth-net-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--auth-net-subtext);
}

code.inline {
  background: #eef2ff;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
}

@media (max-width: 480px) {
  .auth-net-form {
    padding: 16px;
    border-radius: 16px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .auth-net-grid-2 {
    grid-template-columns: 1fr;
  }
}
