/* =========================================================
   STANDALONE LOGIN PAGE LAYOUT
   ========================================================= */

html {
  min-height: 100%;
}

body.hw-pro-auth-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(59, 130, 246, 0.1),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(37, 99, 235, 0.08),
      transparent 30%
    ),
    #f7faff;
}

body.hw-pro-auth-page.admin-bar {
  min-height: calc(100vh - 32px);
}

.hw-pro-auth-layout {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}

.hw-pro-auth-brand {
  display: flex;
  justify-content: center;
  padding: 34px 24px 0;
}

.hw-pro-auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hw-pro-auth-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hw-pro-auth-logo > .custom-logo-link {
  text-decoration: none;
}

.hw-pro-auth-logo .custom-logo {
  width: auto;
  max-width: 150px;
  max-height: 100px;
  object-fit: contain;
}

.hw-pro-auth-site-name {
  color: #0f2f63;
  font-size: 1.35rem;
  font-weight: 850;
}

.hw-pro-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hw-pro-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 48px, 1100px);
  margin: 0 auto;
  padding: 24px 0 30px;
  color: #64748b;
  font-size: 0.84rem;
}

.hw-pro-auth-footer p {
  margin: 0;
}

.hw-pro-auth-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.hw-pro-auth-footer a {
  color: #475569;
  font-weight: 650;
  text-decoration: none;
}

.hw-pro-auth-footer a:hover {
  color: #2563eb;
  text-decoration: underline;
}

@media (max-width: 782px) {
  body.hw-pro-auth-page.admin-bar {
    min-height: calc(100vh - 46px);
  }

  .hw-pro-auth-brand {
    padding-top: 24px;
  }

  .hw-pro-auth-logo .custom-logo {
    max-width: 125px;
    max-height: 80px;
  }

  .hw-pro-auth-footer {
    flex-direction: column;
    width: min(100% - 32px, 1100px);
    text-align: center;
  }

  .hw-pro-auth-footer nav {
    justify-content: center;
  }
}

/* =========================================================
   HOMEWAGGER PROFESSIONAL — LOGIN
   ========================================================= */

.hw-pro-login {
  width: 100%;
  padding: 40px 24px;
}

.hw-pro-login-card {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 42px;
  border: 1px solid #dbe4f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 35, 70, 0.08);
}

.hw-pro-login-header {
  margin-bottom: 30px;
}

.hw-pro-login-kicker {
  margin: 0 0 10px;
  color: #2563eb;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hw-pro-login-header h1 {
  margin: 0 0 14px;
  color: #0f2f63;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.hw-pro-login-header p:last-child {
  margin: 0;
  color: #5f6f85;
  font-size: 1rem;
  line-height: 1.65;
}

.hw-pro-login-alert {
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
}

.hw-pro-login-alert p {
  margin: 0;
  color: #991b1b;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.5;
}

.hw-pro-login-form form {
  margin: 0;
}

.hw-pro-login-form p {
  margin: 0 0 20px;
}

.hw-pro-login-form label {
  display: block;
  margin-bottom: 8px;
  color: #17233b;
  font-size: 0.92rem;
  font-weight: 750;
}

.hw-pro-login-form input[type="text"],
.hw-pro-login-form input[type="password"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd7e6;
  border-radius: 10px;
  background: #ffffff;
  color: #17233b;
  font: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hw-pro-login-form input[type="text"]:focus,
.hw-pro-login-form input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.hw-pro-login-form .login-remember {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hw-pro-login-form .login-remember label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-weight: 650;
}

.hw-pro-login-form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
}

.hw-pro-login-form .login-submit {
  margin-top: 26px;
}

.hw-pro-login-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.hw-pro-login-form input[type="submit"]:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.hw-pro-login-form input[type="submit"]:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.3);
  outline-offset: 3px;
}

.hw-pro-login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.hw-pro-login-links a {
  color: #2563eb;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.hw-pro-login-links a:hover {
  text-decoration: underline;
}

.hw-pro-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hw-pro-login-primary,
.hw-pro-login-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hw-pro-login-primary {
  background: #2563eb;
  color: #ffffff;
}

.hw-pro-login-primary:hover {
  transform: translateY(-1px);
  background: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.hw-pro-login-secondary {
  border: 1px solid #cbd7e6;
  background: #ffffff;
  color: #0f2f63;
}

.hw-pro-login-secondary:hover {
  transform: translateY(-1px);
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f2f63;
}

@media (max-width: 700px) {
  .hw-pro-login {
    padding: 40px 16px 64px;
  }

  .hw-pro-login-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .hw-pro-login-actions,
  .hw-pro-login-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hw-pro-login-primary,
  .hw-pro-login-secondary,
  .hw-pro-login-form input[type="submit"] {
    width: 100%;
  }
}