:root {
  --bg: #0f172a;
  --bg-accent: #1e293b;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --border: #e2e8f0;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% 10%, #1e293b 0%, #0f172a 45%, #0b1220 100%);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 28px 26px;
  background-color: var(--card);
  box-shadow: var(--shadow);
  border-radius: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0.2px;
}

h2 {
  margin: 16px 0 14px;
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 15px;
}

select {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

select:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  background: #ffffff;
}

.form-field {
  text-align: left;
}

.form-field input,
.form-field select {
  margin: 6px 0 12px;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 6px 0 2px;
}

.field-warning {
  margin: -4px 0 8px;
  font-size: 12px;
  color: #b91c1c;
}

.field-row {
  display: flex;
  gap: 12px;
}

.field-half {
  flex: 1;
}

.mobile-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.copy-actions {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.account-input {
  max-width: none;
  flex: 1 1 140px;
  min-width: 120px;
  margin: 0;
  height: 44px;
}


.account-row .btn.btn-unassign {
  width: auto;
  padding: 0 12px;
  margin: 0;
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 110px;
  justify-content: center;
  height: 44px;
  align-self: center;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: none;
}

.account-row .btn.btn-unassign:hover {
  background: #dc2626 !important;
}

#copy-half-btn {
  flex: 1 1 auto;
  justify-content: center;
}

.btn-copy {
  width: auto;
  padding: 6px 8px;
  margin: 0;
  font-size: 12px;
  background: #eef2ff;
  color: #3730a3;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  align-self: center;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #e0e7ff;
}

.copy-icon {
  margin-right: 4px;
}

.copy-suffix {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.is-hidden {
  display: none;
}

@media (max-width: 520px) {
  .field-row {
    flex-direction: column;
    gap: 0;
  }

  .account-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .account-input {
    flex: 1 1 0;
    min-width: 0;
  }

  .account-row .btn.btn-unassign {
    min-width: 96px;
    padding: 0 10px;
  }
}

.btn,
button {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: none;
  background-color: var(--primary);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.06s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
  text-decoration: none;
  display: inline-block;
}

.btn:hover,
button:hover {
  background-color: var(--primary-hover);
}

.btn.btn-danger {
  background: #ef4444;
  color: #ffffff;
  box-shadow: none;
}

.btn.btn-danger:hover {
  background: #dc2626;
}

.btn:active,
button:active {
  transform: translateY(1px);
}

.btn:disabled,
button:disabled {
  background-color: #cbd5f5;
  cursor: not-allowed;
  box-shadow: none;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-message {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  border: 1px solid transparent;
}

.auth-message:empty {
  display: none;
}

.auth-message.info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.auth-message.success {
  background: #ecfeff;
  color: #0f766e;
  border-color: #99f6e4;
}

.auth-message.error {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}
