/* Login page spruce-up. Loaded only on login.html, scoped to auth classes
   so no other page is affected. Layers on top of styles.css. */

.auth-page {
  min-height: calc(100vh - 132px);
  display: grid;
  place-items: center;
  padding: 44px 16px 60px;
}

.auth-page .login-card {
  width: min(448px, 100%);
  padding: clamp(26px, 4vw, 40px);
  border-radius: 22px;
  text-align: center;
}

/* Brand emblem */
.login-emblem {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #145da0, #16a34a);
  box-shadow: 0 12px 26px rgba(20, 93, 160, 0.30);
}

.login-emblem::after {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffffff, #dce9f6 78%);
  box-shadow: inset 0 -3px 6px rgba(20, 93, 160, 0.18);
}

/* Header block */
.auth-page .auth-kicker {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: #145da0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-page .login-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.15;
}

.auth-page .login-card > .section-helper {
  max-width: 340px;
  margin: 0 auto;
  color: #5f7088;
  font-weight: 600;
  line-height: 1.55;
}

/* Security note reads centered and calm inside the card */
.auth-page .security-reassurance {
  text-align: left;
  margin-top: 18px;
}

/* Form spacing */
.auth-page .auth-form {
  text-align: left;
  margin-top: 4px;
}

.auth-page .auth-form label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #3a4a60;
}

/* Google button lift on hover */
.auth-page .google-auth-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-page .google-auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 35, 71, 0.14);
}

/* Primary button (Log In) */
.auth-page .login-card button#loginBtn {
  margin-top: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-page .login-card button#loginBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(20, 93, 160, 0.28);
  filter: brightness(1.04);
}

/* Secondary button (Create Account) - outlined, distinct from primary */
.auth-page .login-card .secondary-btn {
  margin-top: 10px;
  background: #ffffff;
  color: #145da0;
  border: 1.5px solid #cfe0f2;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.auth-page .login-card .secondary-btn:hover {
  background: #f4f9ff;
  border-color: #145da0;
  transform: translateY(-1px);
}

/* Tertiary (Resend verification) - quiet text link */
.auth-page .login-card .text-btn {
  margin-top: 12px;
  background: none;
  color: #6b7d94;
  border: 0;
  box-shadow: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 0;
  padding: 4px;
}

.auth-page .login-card .text-btn:hover {
  color: #145da0;
}

/* Auth status message */
.auth-page .auth-message:not(:empty) {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f4f9ff;
  font-size: 0.86rem;
  font-weight: 700;
}

/* Divider a touch tighter */
.auth-page .auth-divider {
  margin: 16px 0 12px;
}

@media (max-width: 640px) {
  .auth-page {
    place-items: start center;
    padding: 22px 12px 40px;
  }
  .auth-page .login-card {
    border-radius: 16px;
  }
  .login-emblem {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }
}
