/* django-allauth login — matches https://wg21.org/ sign-in card */

.login-section {
  position: relative;
  z-index: 10;
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.login-card {
  background: rgba(26, 32, 53, 0.5);
  border: 1px solid rgba(51, 70, 250, 0.1);
  border-radius: 12px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.login-card h1,
.login-card h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
}

.account-messages {
  list-style: none;
  margin-bottom: 1.25rem;
}

.account-message {
  background: rgba(51, 70, 250, 0.1);
  border: 1px solid rgba(51, 70, 250, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--maroon-glow);
  text-align: center;
  margin-bottom: 0.5rem;
}

.account-social-lead,
.account-divider {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

.account-divider {
  margin: 1.25rem 0;
}

.account-social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.account-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.account-social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.account-social-icon--github {
  color: var(--white);
}

.account-social-label {
  line-height: 1.2;
}

.account-social-btn:hover {
  border-color: var(--maroon);
  background: rgba(51, 70, 250, 0.08);
}

.account-social-btn--google {
  border-color: rgba(66, 133, 244, 0.5);
}

.account-social-btn--github {
  border-color: var(--input-border);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px rgba(51, 70, 250, 0.15);
}

.account-field-error {
  font-size: 0.8rem;
  color: var(--copper-light);
  margin-top: 0.35rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 0;
}

.form-options input[type="checkbox"] {
  accent-color: var(--maroon);
  width: 14px;
  height: 14px;
}

.form-options a {
  color: var(--maroon-light);
  text-decoration: none;
}

.form-options a:hover {
  color: var(--maroon-glow);
}

.btn-login {
  width: 100%;
  padding: 0.85rem;
  background: var(--maroon);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-login:hover {
  background: var(--maroon-light);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

.account-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}

.account-footer a {
  color: var(--maroon-light);
  text-decoration: none;
}

.account-footer a:hover {
  color: var(--maroon-glow);
}

/* Sign-out confirmation (/accounts/logout/) */
.account-logout-form {
  margin-top: 0.5rem;
}

.account-logout-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.btn-signout {
  width: 100%;
  padding: 0.85rem;
  background: transparent;
  color: var(--copper-light);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid rgba(229, 163, 61, 0.45);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-signout:hover {
  background: rgba(229, 163, 61, 0.1);
  border-color: rgba(229, 163, 61, 0.65);
  color: var(--copper);
}

.btn-signout:active {
  transform: translateY(0);
}

.account-stay-link {
  display: block;
  text-align: center;
  padding: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--maroon-light);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(51, 70, 250, 0.35);
  background: rgba(51, 70, 250, 0.08);
  transition: border-color 0.2s, background 0.2s;
}

.account-stay-link:hover {
  border-color: rgba(51, 70, 250, 0.55);
  background: rgba(51, 70, 250, 0.14);
  color: var(--maroon-glow);
}

.account-logout-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(51, 70, 250, 0.12);
  text-align: center;
  font-size: 0.85rem;
}

.account-logout-footer a {
  color: var(--maroon-light);
  text-decoration: none;
}

.account-logout-footer a:hover {
  color: var(--maroon-glow);
  text-decoration: underline;
}
