@import url("./app.css");

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1000px 520px at -12% -18%, rgba(245, 196, 0, 0.2), transparent 65%),
    radial-gradient(900px 600px at 108% 112%, rgba(24, 73, 169, 0.22), transparent 65%),
    linear-gradient(145deg, #07152b 0%, #102a52 55%, #0c2141 100%);
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.08), transparent 35%);
}

.auth-card {
  width: min(470px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.44);
  box-shadow: 0 30px 65px rgba(7, 18, 38, 0.42);
}

.auth-card-top {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 24px 34px 18px;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--gold-light);
  color: var(--navy-mid);
  border: 1px solid rgba(245, 196, 0, 0.42);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.auth-logo {
  height: 50px;
  margin: 0 auto 14px;
}

.auth-title {
  font-size: 1.08rem;
}

.auth-subtitle {
  font-size: 0.79rem;
}

.auth-card-body {
  padding: 24px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message.show {
  margin-bottom: 2px;
}

.auth-form {
  gap: 14px;
}

.auth-form .form-group {
  gap: 6px;
}

.auth-form .form-group input {
  border-radius: 10px;
}

.input-with-action {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-action input {
  padding-right: 48px;
}

.field-action {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.field-action:hover {
  background: var(--gray-100);
  color: var(--text-2);
}

/* Icon-only variant for password toggle */
.field-action--icon {
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.field-action--icon .hidden {
  display: none;
}

.auth-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}

.auth-inline-actions--center {
  justify-content: center;
  margin-top: 0;
}

.link-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0;
}

.link-btn:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.captcha-group {
  gap: 8px;
}

.hcaptcha-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border: 1px dashed var(--border-md);
  border-radius: 10px;
  padding: 10px;
  min-height: 76px;
}

.hcaptcha-widget iframe {
  border-radius: 10px;
}

.captcha-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: -1px;
}

.auth-form .btn-primary {
  margin-top: 4px;
  min-height: 46px;
  background: linear-gradient(140deg, var(--navy), var(--accent));
  border-color: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(11, 31, 59, 0.22);
}

.auth-form .btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(11, 31, 59, 0.28);
}

.auth-helper {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  padding: 14px;
}

.auth-helper h3 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}

.auth-helper p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.auth-helper-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-helper-actions {
  display: flex;
  gap: 8px;
}

.auth-helper-actions .btn {
  flex: 1;
}

.auth-tagline {
  margin-top: 2px;
}

@media (max-width: 520px) {
  .auth-page {
    padding: 14px;
  }

  .auth-card {
    border-radius: 14px;
  }

  .auth-card-top {
    padding: 20px 18px 16px;
  }

  .auth-card-body {
    padding: 18px 18px 24px;
    gap: 12px;
  }

  .auth-logo {
    height: 40px;
    margin-bottom: 10px;
  }

  .auth-title {
    font-size: 0.95rem;
  }

  .auth-subtitle {
    font-size: 0.75rem;
  }

  .hcaptcha-widget {
    min-height: 72px;
    padding: 8px;
  }

  .auth-helper-actions {
    flex-direction: column;
  }
}
