.auth-public-page {
  min-height: calc(100vh - 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 85%, rgba(22, 163, 74, 0.2), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(14, 165, 233, 0.22), transparent 30%),
    linear-gradient(135deg, #07172a 0%, #0f172a 46%, #111827 100%);
}

.auth-public-card {
  width: min(480px, 100%);
  padding: 32px;
  border-radius: 28px;
  background: rgba(248, 250, 252, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.auth-public-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-public-logo img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(14, 165, 233, 0.14));
}

.auth-public-header {
  text-align: center;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.auth-public-header h1 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.auth-public-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

.auth-public-form {
  display: grid;
  gap: 18px;
}

.auth-public-field label {
  display: inline-block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
}

.auth-public-field label span {
  color: #ef4444;
}

.auth-public-input-wrap {
  position: relative;
}

.auth-public-input-wrap > i {
  position: absolute;
  left: 18px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #64748b;
  opacity: 0.75;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
}

.auth-public-form .auth-public-input-wrap input,
.auth-public-form .auth-public-input-wrap input.form-control {
  width: 100%;
  min-height: 54px;
  height: 54px;
  padding: 14px 48px 14px 52px !important;
  border: 1px solid #d6e0ef !important;
  border-radius: 16px !important;
  background: #f3f6fb !important;
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.auth-public-form .auth-public-input-wrap input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.auth-public-form .auth-public-input-wrap input:focus,
.auth-public-form .auth-public-input-wrap input.form-control:focus {
  border-color: #0ea5e9 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14) !important;
}

.auth-public-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  transform: translateY(-50%);
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.auth-public-toggle:hover {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
}

.auth-public-help {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.auth-public-btn {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(2, 132, 199, 0.26);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.auth-public-btn:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.auth-public-btn:disabled,
.auth-public-btn.is-loading {
  opacity: 0.78;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.auth-public-btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.22);
}

.auth-public-btn-secondary,
.auth-public-btn-secondary:visited,
.auth-public-btn-secondary:focus,
.auth-public-btn-secondary:hover,
.auth-public-btn-secondary:active {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.auth-public-btn-secondary {
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.auth-public-btn-secondary:hover {
  background: #cbd5e1 !important;
  text-decoration: none;
  transform: translateY(-1px);
}

.auth-public-messages {
  margin-bottom: 18px;
}

.auth-public-messages .alert {
  border: 0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
}

.auth-public-footer {
  margin-top: 18px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.auth-public-footer a {
  color: #0369a1;
  font-weight: 900;
  text-decoration: none;
}

.auth-public-footer a:hover {
  text-decoration: underline;
}

.auth-public-result {
  text-align: center;
}

.auth-public-result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 24px;
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.auth-public-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 575px) {
  .auth-public-page {
    min-height: 100vh;
    padding: 10px;
  }

  .auth-public-card {
    padding: 22px;
    border-radius: 22px;
  }

  .auth-public-logo img {
    width: 68px;
    height: 68px;
  }

  .auth-public-header h1 {
    font-size: 21px;
  }
}
