/* Auth pages — login / registration */

.auth-page {
  background: #f2f4f7;
  min-height: 100vh;
  width: 100%;
}

.auth-shell {
  max-width: 28rem; /* ~448px, mirrors --container-md */
  margin-inline: auto;
  padding: 5rem 1.25rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo {
  width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
}

.auth-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Legal copy that sits between social buttons and divider (matches live site) */
.legal-top {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--secondary-text);
  line-height: 1.55;
  margin-top: 0.25rem;
}

.legal-top a {
  color: var(--dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-top p + p { margin-top: 0.75rem; }

.forgot-center {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--secondary-text);
  align-self: flex-end;
}

.forgot-center:hover { color: var(--primary); text-decoration: underline; }

.forgot-center svg { width: 15px; height: 15px; color: var(--primary); }

.auth-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Sign-in-as-google chip (mimics Google One Tap prompt) */
.google-one-tap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  height: 56px;
  width: 100%;
}

.google-one-tap .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex: 0 0 32px;
}

.google-one-tap .labels {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.google-one-tap .primary-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
}

.google-one-tap .primary-label svg {
  width: 14px;
  height: 14px;
  color: var(--muted-foreground);
}

.google-one-tap .email {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.google-one-tap .gmark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

/* LinkedIn button */
.btn-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 48px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--input);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  transition: background-color 0.2s ease;
}

.btn-linkedin:hover { background: var(--light-gray-bg); }

.btn-linkedin .li-mark {
  width: 20px;
  height: 20px;
  background: #0a66c2;
  color: #fff;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: -0.5px;
  font-family: Arial, sans-serif;
}

/* OR divider */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-block: 0.75rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Form fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.field label {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.field .control {
  position: relative;
  display: flex;
  align-items: center;
}

.field input {
  width: 100%;
  height: 40px;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  font: inherit;
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: #98a2b3; }

.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(101, 172, 98, 0.2);
}

.field .pw-toggle {
  position: absolute;
  right: 0.5rem;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--muted-foreground);
  border-radius: 6px;
}

.field .pw-toggle:hover { color: var(--dark); background: var(--light-gray-bg); }

.field .pw-toggle svg { width: 18px; height: 18px; }

.field input[type="password"] + .pw-toggle .eye-off,
.field input[type="text"]     + .pw-toggle .eye-on {
  display: none;
}

.submit-btn {
  margin-top: 1.25rem;
  width: 100%;
  height: 48px;
  font-size: 0.95rem;
  font-weight: 600;
}

.legal {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--secondary-text);
  margin-top: 1.25rem;
  line-height: 1.55;
}

.legal a {
  color: var(--secondary-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal p + p { margin-top: 0.75rem; }

.alt-action {
  width: 100%;
  margin-top: 1.5rem;
  height: 48px;
  font-size: 0.95rem;
  font-weight: 600;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.8125rem;
  color: var(--secondary-text);
  margin-top: 0.5rem;
}

.forgot-link:hover { color: var(--primary); text-decoration: underline; }

.validation-error {
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #ef4444;
}

/* Back-to-home link */
.back-home {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  color: var(--secondary-text);
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  transition: background 0.2s;
}

.back-home:hover { background: #fff; color: var(--dark); }

.back-home svg { width: 16px; height: 16px; }

/* Checkbox row */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--secondary-text);
  line-height: 1.5;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.checkbox-row a {
  color: var(--dark);
  text-decoration: underline;
}
