.jn-auth-page {
  min-height: 100vh;
  padding: 32px 20px;
  background: #f4f8fb;
}

.jn-auth-shell {
  width: min(100%, 560px);
  margin: 48px auto 0;
  padding: 32px;
  border: 1px solid var(--jn-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(19, 53, 82, 0.08);
}

.jn-auth-eyebrow {
  margin: 0 0 8px;
  color: var(--jn-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.jn-auth-shell h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.1;
}

.jn-auth-intro {
  margin: 0 0 26px;
  color: var(--jn-muted);
  font-size: 17px;
  line-height: 1.5;
}

.jn-auth-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.jn-auth-field input {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--jn-border);
  border-radius: 8px;
  font: inherit;
}

.jn-auth-button {
  width: 100%;
  margin-top: 14px;
  padding: 14px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--jn-blue);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.jn-auth-button:hover {
  background: var(--jn-blue-dark);
}

.jn-auth-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.jn-auth-google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  border: 1px solid #747775;
  background: #ffffff;
  color: #1f1f1f;
  font-family: "Google Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.jn-auth-google-button:hover {
  border-color: #6f7376;
  background: #f8faff;
  color: #174ea6;
}

.jn-auth-google-button:active {
  background: #f2f2f2;
}

.jn-auth-google-button:focus-visible {
  outline: 3px solid rgba(26, 115, 232, 0.28);
  outline-offset: 2px;
}

.jn-auth-google-button:disabled {
  background: #ffffff;
  color: #1f1f1f;
}

.jn-auth-google-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.jn-auth-google-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.jn-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--jn-muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.jn-auth-divider::before,
.jn-auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--jn-border);
}

.jn-auth-session {
  padding: 20px;
  border: 1px solid #b9dfc5;
  border-radius: 10px;
  background: #f2fbf5;
}

.jn-auth-session p {
  margin: 0;
}

.jn-auth-session-email {
  margin-top: 5px !important;
  font-size: 18px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.jn-auth-code-help {
  margin: 0 0 20px;
  color: var(--jn-muted);
  line-height: 1.5;
}

.jn-auth-code-help strong {
  color: var(--jn-text);
  overflow-wrap: anywhere;
}

.jn-auth-code-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.jn-auth-text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--jn-blue);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.jn-auth-text-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.jn-auth-status {
  min-height: 22px;
  margin: 18px 0 0;
  color: var(--jn-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.jn-auth-status-success {
  color: #176b36;
}

.jn-auth-status-error {
  color: #b42318;
}

.jn-auth-note {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--jn-border);
  color: var(--jn-muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .jn-auth-page {
    padding: 20px 14px;
  }

  .jn-auth-shell {
    margin-top: 24px;
    padding: 24px 20px;
  }

  .jn-auth-shell h1 {
    font-size: 30px;
  }

  .jn-auth-code-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
