:root {
  --brand-dark: #1f2228;
  --brand-blue: #0d8cff;
  --border: #d8d8d8;
  --text: #222;
  --muted: #6c6c6c;
  --card-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #f4f5f7 0%, #e7e9ed 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.auth-page {
  width: 100%;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.auth-card--medium {
  width: 460px;
}

.auth-card--wide {
  width: 480px;
}

.auth-card__header {
  background: var(--brand-dark);
  padding: 20px 18px;
  display: flex;
  justify-content: center;
}

.auth-card__header img {
  max-height: 54px;
}

.auth-card__body {
  padding: 20px 20px 16px;
  position: relative;
}

.auth-card__body--center {
  text-align: center;
}

.auth-title {
  text-align: center;
  margin: 0px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.auth-subtitle {
  text-align: center;
  margin: 0 0 22px;
  color: var(--text);
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}

.form-control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  background: #fafbfc;
}

.form-control:focus {
  outline: 2px solid rgba(13, 140, 255, 0.25);
  border-color: var(--brand-blue);
  background: #fff;
}

.form-control--code {
  padding: 12px;
  font-size: 18px;
  letter-spacing: 6px;
  text-align: center;
  font-weight: 700;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 14px 0 6px;
}

.checkbox input {
  margin-top: 3px;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 11px 12px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #0b7cd8;
}

.auth-footer {
  background: #e9ebee;
  text-align: center;
  padding: 12px 14px;
  font-size: 12px;
  color: #2f3237;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.links {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.links a {
  color: var(--brand-blue);
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.links .divider {
  margin: 0 6px;
  color: #a0a3a9;
}

.alert {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}

.alert-danger {
  background: #ffe5e5;
  border: 1px solid #ffb4b4;
  color: #a11212;
}

.alert-success {
  background: #e7f6e9;
  border: 1px solid #b8e2be;
  color: #2e7d32;
}

.alert-info {
  background: #e5f1ff;
  border: 1px solid #b6d3ff;
  color: #0f4faa;
}

.mt-3 {
  margin-top: 12px;
}
