.afdip-auth-page {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

.auth-shell {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-container {
  width: 100%;
  max-width: 520px;
}

.auth-card {
  width: 100%;
  background: #162033;
  border: 1px solid #24324a;
  border-radius: 18px;
  padding: 36px 36px 30px 36px;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.22);
  color: #e5e7eb;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header h1 {
  margin: 0;
  font-size: 2.15rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.auth-header p {
  margin: 10px 0 0 0;
  font-size: 1rem;
  color: #94a3b8;
}

.auth-body-wrap {
  width: 100%;
}

.auth-section {
  width: 100%;
}

.auth-section h3 {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 750;
  color: #f8fafc;
}

.auth-section p {
  margin: 0 0 18px 0;
  color: #cbd5e1;
  line-height: 1.45;
}

.auth-section hr {
  margin: 22px 0;
  border: 0;
  border-top: 1px solid #24324a;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field .shiny-input-container {
  width: 100%;
  margin-bottom: 0;
}

.auth-field label,
.auth-field .control-label,
.auth-section .control-label,
.auth-section .form-label {
  display: block;
  margin-bottom: 7px;
  color: #e2e8f0 !important;
  font-size: 0.96rem;
  font-weight: 650;
}

.auth-section .form-control,
.auth-section .form-select,
.auth-section input[type="text"],
.auth-section input[type="password"],
.auth-section input[type="email"],
.auth-section textarea,
.auth-section select {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #f8fafc;
  box-shadow: none;
  font-size: 0.98rem;
  padding: 10px 12px;
}

.auth-section textarea {
  min-height: 112px;
  resize: vertical;
}

.auth-section .form-control::placeholder,
.auth-section input::placeholder,
.auth-section textarea::placeholder {
  color: #94a3b8;
}

.auth-section .form-control:focus,
.auth-section .form-select:focus,
.auth-section input[type="text"]:focus,
.auth-section input[type="password"]:focus,
.auth-section input[type="email"]:focus,
.auth-section textarea:focus,
.auth-section select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.18);
  background: #0f172a;
  color: #f8fafc;
  outline: none;
}

.auth-actions {
  margin-top: 4px;
  margin-bottom: 14px;
}

.auth-actions .btn,
.auth-actions .btn-primary,
.auth-actions .btn-default,
.auth-actions .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid #0ea5e9;
  background: #38bdf8;
  color: #082f49 !important;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: none;
}

.auth-actions .btn:hover,
.auth-actions .btn-primary:hover,
.auth-actions .btn-default:hover,
.auth-actions .action-button:hover {
  background: #0ea5e9;
  border-color: #0284c7;
  color: #082f49 !important;
}

.auth-actions .btn:focus,
.auth-actions .btn-primary:focus,
.auth-actions .btn-default:focus,
.auth-actions .action-button:focus {
  box-shadow: 0 0 0 0.18rem rgba(56, 189, 248, 0.22);
  outline: none;
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.auth-links a {
  display: inline-block;
  color: #38bdf8 !important;
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-token-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #334155;
}

.auth-token-label {
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-token-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-all;
  color: #f8fafc;
}

@media (max-width: 640px) {
  .auth-shell {
    padding: 18px 14px;
  }

  .auth-card {
    border-radius: 14px;
    padding: 24px 20px 22px 20px;
  }

  .auth-header {
    margin-bottom: 22px;
  }

  .auth-header h1 {
    font-size: 1.8rem;
  }
}