/* ─── Login Page ──────────────────────────────────────────────────────────── */
.site-width-30 {
  max-width: 420px;
  margin-inline: auto;
  padding: var(--spacing-xl) var(--spacing-md);
  width: 100%;
}

/* Center heading */
.text-align-center {
  text-align: center;
}

/* Google / CTA button */
.button.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.button.cta:hover {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(106, 62, 235, 0.1);
}

/* "— or —" separator */
.or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-grey);
  margin: 1.25rem 0;
  text-align: center;
}

.or::before,
.or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Card wrapper for email/password form */


/* Form fields */
.card .field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: var(--spacing-md);
}

.card .field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.card .field input {
  padding: 0.625rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.card .field input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(106, 62, 235, 0.12);
}

/* Forgot-password link row */
.card div[style] a {
  color: var(--primary-purple);
  font-weight: 500;
  font-size: 0.875rem;
  transition: opacity 0.2s;
}

.card div[style] a:hover {
  opacity: 0.75;
}

/* Spacer inside card */
.card .spacer {
  height: 0.75rem;
}

/* Submit button */
.card button.primary {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--primary-purple);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.card button.primary:hover:not(:disabled) {
  background: var(--primary-purple-dark);
  box-shadow: 0 4px 12px rgba(106, 62, 235, 0.3);
}

.card button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error message */
.text-red-500 {
  color: #ef4444;
}

.text-sm {
  font-size: 0.875rem;
}

.text-center {
  text-align: center;
}

/* Sign-in / Sign-up row at bottom */
.sign-in {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.sign-in strong {
  font-size: 0.875rem;
  color: var(--text-grey);
  font-weight: 500;
}

.sign-in .button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--tag-purple-bg);
  color: var(--primary-purple);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}

.sign-in .button:hover {
  background: #ddd9fb;
}

/* Key-login loading spinner animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Language selector on login page (outside <header>) ─────────────────── */
.site-width-30 .language {
  position: relative;
  display: flex;
  justify-content: end;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-width-30 .language > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.35em 0.75em;
  border-radius: 0.5rem;
  background: #f0ebff;
  color: var(--primary-purple);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  user-select: none;
  font-weight: 700;
}

.site-width-30 .language > a:hover {
  background: #e2d9fd;
}

.site-width-30 .language > a i {
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.site-width-30 .language:hover > a i {
  transform: rotate(180deg);
}

.site-width-30 .language > ul {
  display: none;
  position: absolute;
  top: 100%;           /* flush — no hover gap */
  right: 0;
  min-width: 5rem;
  background: white;
  border-radius: 0.6rem;
  box-shadow: var(--shadow-sm);
  padding: 6px 0 0.3rem;
  z-index: 200;
  list-style: none;
  margin: 0;
  overflow: hidden;
}

.site-width-30 .language:hover > ul {
  display: block;
}

.site-width-30 .language ul li a {
  display: block;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e1b4b;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.site-width-30 .language ul li a:hover {
  background: #f0ebff;
  color: #6a3eeb;
}
