/* ========================================
   AUTH STYLES
   Shared by all auth pages (login, register,
   forgot-password, reset-password, verify-email,
   resend-verification, account)
   ======================================== */

/* Layout */
.auth-container {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 40px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

/* Title */
.auth-title {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #222;
  margin-bottom: 28px;
  text-align: center;
}

/* Description (forgot-password, resend-verification) */
.auth-description {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Form fields */
.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #555;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.auth-field input {
  width: 100%;
  border: 1px solid #d7d7d7;
  background: #fff;
  padding: 11px 14px;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  color: #333;
  transition: border-color 0.2s;
}

.auth-field input:focus {
  outline: none;
  border-color: #999;
}

.auth-field input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Password toggle */
.auth-password-wrapper {
  position: relative;
}

.auth-password-wrapper input {
  padding-right: 44px;
}

.auth-toggle-pw {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.auth-toggle-pw:hover {
  color: #555;
}

.auth-eye-icon {
  width: 20px;
  height: 20px;
}

/* Turnstile */
.auth-turnstile {
  margin: 20px 0;
  min-height: 65px;
}

/* Submit button */
.auth-submit {
  display: block;
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #666 0%, #4f4f4f 100%);
  color: #fff;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, opacity 0.3s;
}

.auth-submit:hover:not(:disabled) {
  background: linear-gradient(180deg, #5f5f5f 0%, #454545 100%);
}

.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Feedback messages */
.auth-feedback {
  min-height: 20px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.auth-feedback.is-error {
  color: #b34343;
}

.auth-feedback.is-success {
  color: #1d7f43;
}

.auth-feedback.is-info {
  color: #555;
}

/* Links (login/register/forgot) */
.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 13px;
  color: #777;
}

.auth-links a {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-links a:hover {
  color: #222;
}

/* Centered variant for verify/resend/register pages with 1-2 dynamic links */
.auth-links--centered {
  justify-content: center;
  gap: 24px;
}

/* ========================================
   ACCOUNT PAGE STYLES
   Used by AccountPage only, but kept here
   to avoid scoped duplication of auth-* deps
   ======================================== */

/* Loading */
.account-loading {
  text-align: center;
  font-size: 15px;
  color: #999;
  padding: 40px 0;
}

/* Layout */
.account-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

/* Sidebar */
.account-sidebar {
  flex: 0 0 240px;
  position: sticky;
  top: 160px;
}

.account-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-nav li {
  border-bottom: 1px solid #f0f0f0;
}

.account-nav li:last-child {
  border-bottom: none;
}

.account-nav-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: none;
  text-align: left;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #555;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.account-nav-btn:hover {
  color: #222;
  background: #f9f9f9;
}

.account-nav-btn.is-active {
  color: #222;
  font-weight: 600;
  background: #f5f5f5;
  border-left: 3px solid #555;
  padding-left: 13px;
}

.account-nav-btn-danger {
  color: #b34343;
}

.account-nav-btn-danger:hover {
  color: #8a2e2e;
  background: #fdf5f5;
}

.account-nav-btn-danger.is-active {
  color: #8a2e2e;
  border-left-color: #b34343;
  background: #fdf5f5;
}

/* Content */
.account-content {
  flex: 1;
  min-width: 0;
}

/* Sections */
.account-section {
  display: none;
}

.account-section.is-visible {
  display: block;
}

.account-section-title {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #222;
  margin-bottom: 24px;
}

.account-section-lead {
  margin-bottom: 18px;
  font-size: 15px;
  color: #555;
}

.account-danger-title {
  color: #b34343;
}

.account-coming-soon {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin: 0;
}

.account-coming-soon a {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Logout button */
.account-logout-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 13px 24px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.account-logout-btn:hover {
  background: #f5f5f5;
  color: #333;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .account-layout {
    flex-direction: column;
    gap: 0;
  }

  .account-sidebar {
    flex: none;
    position: static;
    width: 100%;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .account-nav {
    display: flex;
    gap: 0;
    white-space: nowrap;
  }

  .account-nav li {
    border-bottom: none;
    flex-shrink: 0;
  }

  .account-nav-btn {
    padding: 12px 16px;
    font-size: 15px;
    white-space: nowrap;
  }

  .account-nav-btn.is-active {
    border-left: none;
    padding-left: 16px;
    border-bottom: 2px solid #555;
  }

  .account-nav-btn-danger.is-active {
    border-bottom-color: #b34343;
  }

  .account-content {
    width: 100%;
  }
}
