/* Auth pages - login and register */

.auth-body {
  font-family: 'Inter', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #141414;
  color: #d8d8d8;
  min-height: 100vh;
  margin: 0;
}

.auth-page {
  width: 100%;
  max-width: 460px;
  padding: clamp(1rem, 3vh, 2rem) 1rem 2rem;
  margin: 0 auto;
}

.auth-card {
  background: #1a1a1a;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ebebeb;
  margin: 0 0 1.75rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #555;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.form-group .hint {
  font-size: 0.72rem;
  color: #3a3a3a;
  font-weight: 400;
}

.form-group input {
  background: #141414;
  border: 1px solid #222;
  border-radius: 4px;
  color: #d8d8d8;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input::placeholder {
  color: #333;
}

.form-group input:focus {
  outline: none;
  border-color: #c8a96e;
}

.auth-error {
  background: rgba(180, 60, 60, 0.1);
  border: 1px solid rgba(180, 60, 60, 0.3);
  border-radius: 4px;
  color: #d07070;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, background 0.15s;
}

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

.btn-full {
  width: 100%;
}

.btn-primary {
  background: #c8a96e;
  color: #141414;
  font-weight: 600;
  margin-top: 0.25rem;
}

.btn-primary:hover {
  opacity: 0.88;
}

.btn-steam {
  background: #1b2838;
  color: #c7d5e0;
  border: 1px solid #2a475e;
  font-size: 0.82rem;
}

.btn-steam:hover {
  background: #2a475e;
  color: #fff;
}

.btn-discord {
  background: #5865F2;
  color: #fff;
  border: 1px solid #4752c4;
  font-size: 0.82rem;
}

.btn-discord:hover {
  background: #4752c4;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #333;
  font-size: 0.75rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1e1e1e;
}

/* OAuth section */
.auth-oauth {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Footer link */
.auth-footer {
  text-align: center;
  font-size: 0.8rem;
  color: #444;
  margin: 1.5rem 0 0;
}

.auth-footer a {
  color: #c8a96e;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #d4ba82;
}

.auth-help-link {
  text-align: center;
  margin: 0.75rem 0 0;
  font-size: 0.825rem;
}

.auth-help-link a {
  color: #666;
  text-decoration: none;
}

.auth-help-link a:hover {
  color: #888;
}

/* ── Post-card strips (verify_pending Discord, etc.) ────────────────────── */

.auth-post-card-strip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.auth-discord-strip {
  background: rgba(88, 101, 242, 0.06);
  border-color: rgba(88, 101, 242, 0.15);
  color: #7289da;
}

.auth-post-card-strip-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.auth-post-card-strip-copy strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8ea1e1;
}

.auth-post-card-strip-copy span {
  font-size: 0.75rem;
  color: #444;
  line-height: 1.5;
}

.auth-post-card-strip-btn {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.auth-post-card-strip-btn--discord {
  color: #5865f2;
}

.auth-post-card-strip-btn--discord:hover {
  color: #7289da;
}

/* ── Email verify success (verify_result) ───────────────────────────────── */

.auth-card--verify-success {
  text-align: center;
}

.auth-card--verify-fail {
  text-align: center;
}

.auth-verify-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(107, 191, 138, 0.12);
  border: 1px solid rgba(107, 191, 138, 0.28);
  color: #6abf69;
}

.auth-verify-success-title {
  margin-bottom: 0.65rem !important;
}

.auth-verify-success-lead {
  color: #a0a0a0;
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 auto 1.35rem;
  max-width: 26rem;
}

.auth-verify-success-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.65rem;
  color: #444;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-verify-success-divider::before,
.auth-verify-success-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #252525;
}

.auth-verify-success-nudge {
  margin: 0 auto 1rem;
  max-width: 22rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #666;
}

.auth-verify-success-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.auth-verify-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.auth-verify-card:hover {
  transform: translateY(-1px);
}

.auth-verify-card-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-verify-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.auth-verify-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-verify-card-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.auth-verify-card-desc {
  font-size: 0.73rem;
  line-height: 1.35;
  color: #666;
}

.auth-verify-card-go {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.auth-verify-card--discord {
  background: rgba(88, 101, 242, 0.06);
  border-color: rgba(88, 101, 242, 0.18);
}

.auth-verify-card--discord .auth-verify-card-label {
  color: #7289da;
}

.auth-verify-card--discord .auth-verify-card-title {
  color: #8ea1e1;
}

.auth-verify-card--discord .auth-verify-card-icon {
  color: #5865f2;
}

.auth-verify-card--discord .auth-verify-card-go {
  color: #5865f2;
}

.auth-verify-card--discord:hover {
  background: rgba(88, 101, 242, 0.1);
  border-color: rgba(88, 101, 242, 0.32);
}

.auth-verify-card--discord:hover .auth-verify-card-title {
  color: #aab8f5;
}

.auth-verify-card--supporter {
  background: rgba(200, 169, 110, 0.06);
  border-color: rgba(200, 169, 110, 0.2);
}

.auth-verify-card--supporter .auth-verify-card-label {
  color: #a89060;
}

.auth-verify-card--supporter .auth-verify-card-title {
  color: #d9be8a;
}

.auth-verify-card--supporter .auth-verify-card-icon {
  color: #c8a96e;
}

.auth-verify-card--supporter .auth-verify-card-go {
  color: #c8a96e;
}

.auth-verify-card--supporter:hover {
  background: rgba(200, 169, 110, 0.1);
  border-color: rgba(200, 169, 110, 0.35);
}

.auth-verify-card--supporter:hover .auth-verify-card-title {
  color: #e8d4a8;
}

@media (max-width: 420px) {
  .auth-verify-card {
    flex-wrap: wrap;
  }

  .auth-verify-card-go {
    width: 100%;
    text-align: right;
    margin-top: 0.15rem;
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 1rem 0.75rem;
  }

  .auth-card {
    padding: 1.5rem 1rem;
  }
}
