/* Login / register — homepage header + responsive form column */

.header-cta-outline {
  background: transparent !important;
  border: 1px solid var(--color-border);
}

body.auth-page-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

body.auth-page-body #site-header {
  flex-shrink: 0;
}

.auth-page-main {
  flex: 1;
  width: 100%;
  padding: clamp(1rem, 4vw, 2.5rem) clamp(0.75rem, 3vw, 1.5rem) clamp(2rem, 6vw, 3rem);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.auth-page-inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.auth-page-inner--narrow {
  max-width: 440px;
}

.auth-card {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.auth-card-head {
  margin-bottom: 1.35rem;
}

.auth-card-head h1 {
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  color: var(--color-navy);
}

.auth-card-head p {
  margin: 0;
  color: var(--color-slate);
  font-size: clamp(0.9rem, 2.5vw, 0.98rem);
  line-height: 1.55;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label,
.auth-card .form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-slate);
  margin-bottom: 0.35rem;
}

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

.auth-input-wrap i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
  font-size: 0.9rem;
}

.auth-input,
.auth-card .form-control {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.72rem 2.5rem 0.72rem 0.95rem;
  font-size: max(16px, 0.98rem);
  color: var(--color-navy);
  background: var(--color-input-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-card textarea.form-control,
.auth-card select.form-control,
.auth-card .form-control-file {
  padding-right: 0.95rem;
}

.auth-card select.form-control {
  padding-right: 2rem;
}

.auth-input:focus,
.auth-card .form-control:focus {
  outline: none;
  border-color: var(--color-emerald);
  box-shadow: 0 0 0 3px rgba(15, 117, 81, 0.18);
}

.auth-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-emerald);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  margin-top: 0.25rem;
}

.auth-btn:hover {
  background: var(--color-emerald-light);
  color: #fff;
}

.auth-btn:active {
  transform: scale(0.99);
}

.auth-alert {
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.auth-alert-success {
  background: rgba(15, 117, 81, 0.12);
  color: var(--color-emerald-dark);
  border: 1px solid rgba(15, 117, 81, 0.25);
}

.auth-alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.auth-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.auth-links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.auth-links a {
  color: var(--color-emerald);
  font-weight: 600;
  text-decoration: none;
}

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

.auth-footnote {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

.auth-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 1.25rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border-light);
}

.auth-card h5:first-of-type {
  margin-top: 0;
}

.auth-card .form-group {
  margin-bottom: 0.85rem;
}

.auth-card .text-muted,
.auth-card small.text-muted {
  color: var(--color-muted) !important;
  font-size: 0.82rem;
}

.auth-card .alert-light {
  background: var(--color-emerald-pale);
  border-color: var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-slate);
}

.auth-card .auth-dns-guide {
  background: #f8f9fa;
  color: #111;
}

.auth-card .auth-dns-guide summary.auth-dns-guide-summary {
  color: #000;
  cursor: pointer;
}

.auth-card .auth-dns-guide .mt-3,
.auth-card .auth-dns-guide .mt-3 p,
.auth-card .auth-dns-guide .mt-3 li,
.auth-card .auth-dns-guide .mt-3 strong {
  color: #111;
}

/* Bootstrap grid inside register form */
.auth-card .row {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.auth-card .row > [class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

@media (max-width: 767.98px) {
  .auth-card .col-md-6 + .col-md-6 {
    margin-top: 0.5rem;
  }

  .auth-card .form-row {
    flex-direction: column;
  }

  .auth-card .form-row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Auth header: compact CTAs on small phones */
@media (max-width: 480px) {
  .site-header--auth .header-register-link {
    display: none;
  }

  .site-header--auth .header-inner > .btn-login:not(.header-register-link) {
    display: none;
  }
}

@media (max-width: 900px) {
  .auth-page-main {
    padding-top: 0.75rem;
  }
}
