/*
  BTCPay login-page theme overrides.
  Safe for both "extend default theme" and accidental "fully custom" mode.
*/

@import url("/main/themes/default.css");

.main-logo.main-logo-custom {
  height: 5rem;
  max-width: min(18rem, 70vw);
}

[data-testid="header"] {
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 2rem !important;
  font-size: clamp(2rem, 1.35rem + 1.8vw, 2.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.account-form {
  max-width: 32rem;
  margin: 0 auto 3rem;
  padding: 2rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.account-form h4 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.account-form .form-group,
.account-form .form-check {
  margin-bottom: 1.1rem;
}

.account-form .form-label,
.account-form .form-check-label {
  font-weight: 600;
}

.account-form .form-control {
  min-height: 3.2rem;
  border-radius: 0.9rem;
  border-color: rgba(17, 24, 39, 0.12);
  background: #fff;
  box-shadow: none;
}

.account-form .form-control:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.18);
}

.account-form .btn-group {
  gap: 0.75rem;
  align-items: stretch;
}

.account-form .btn {
  min-height: 3.4rem;
  border-radius: 0.95rem;
  font-weight: 600;
}

.account-form .btn-primary {
  box-shadow: 0 12px 28px rgba(81, 177, 62, 0.2);
}

.account-form .btn-outline-primary {
  flex: 0 0 auto;
  min-width: 3.4rem;
  padding-inline: 0.9rem;
}

.account-form + .row.justify-content-center.mt-5 {
  display: none;
}

body:has(#login-form) .btcpay-footer {
  display: none;
}

@media (max-width: 640px) {
  .main-logo.main-logo-custom {
    height: 4.25rem;
  }

  [data-testid="header"] {
    margin-bottom: 1.5rem !important;
    font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem);
  }

  .account-form {
    padding: 1.35rem;
    border-radius: 1rem;
  }
}
