/* ============================================================
   Top Dog — Auth pages (login / register) styles.
   Loaded in addition to /assets/site.css. All copy ENGLISH.
   ============================================================ */

.auth-wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.auth-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  max-width: 440px;
  margin: 0 auto;
}
.auth-card.wide { max-width: 760px; }

.auth-card h1 {
  font-size: 1.7rem;
  margin: 0 0 6px;
  text-align: center;
}
.auth-sub {
  text-align: center;
  color: var(--ink-dim);
  margin: 0 0 26px;
  font-size: 0.95rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 720px) {
  .auth-grid { grid-template-columns: 1fr; }
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.98rem;
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus { border-color: var(--gold-border); }
.field input::placeholder { color: rgba(139,149,184,0.55); }
.field .hint { font-size: 0.78rem; color: var(--ink-dim); margin-top: 5px; }
.field.invalid input { border-color: #e0566a; }
.field .field-err { font-size: 0.78rem; color: #ff7a8a; margin-top: 5px; display: none; }
.field.invalid .field-err { display: block; }

.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.auth-error {
  display: none;
  background: rgba(224,86,106,0.12);
  border: 1px solid rgba(224,86,106,0.4);
  color: #ff8a98;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.auth-error.show { display: block; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 18px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.gsi-mount { display: flex; justify-content: center; min-height: 44px; margin-bottom: 6px; }

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--ink-dim);
}
.auth-links a { font-weight: 600; }
.auth-guest {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
}
.auth-guest a { color: var(--ink-dim); }

/* ============================================================
   OAuth provider buttons (Discord, GitHub, Microsoft)
   ============================================================ */

.oauth-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.oauth-stack {
  flex-direction: column;
}
.oauth-stack .gsi-mount {
  justify-content: center;
}

.oauth-btn {
  flex: 1 1 calc(50% - 5px);
  min-width: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #d8e0ff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  font-family: inherit;
}
.oauth-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

.oauth-discord { background: #5865F2; border-color: #5865F2; color: #fff; }
.oauth-discord:hover { background: #4752c4; border-color: #4752c4; }
.oauth-github { background: #24292e; border-color: #444c56; color: #fff; }
.oauth-github:hover { background: #1b1f23; border-color: #586069; }
.oauth-microsoft { background: #0078D4; border-color: #0078D4; color: #fff; }
.oauth-microsoft:hover { background: #106ebe; border-color: #106ebe; }

.oauth-icon {
  font-weight: 700;
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* reCAPTCHA badge */
.grecaptcha-badge {
  z-index: 90;
}

/* dog editor mount */
.editor-mount {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.editor-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 24px;
  color: var(--ink-dim);
}
.editor-placeholder .paw { font-size: 2.4rem; margin-bottom: 12px; }
.editor-placeholder p { margin: 0; font-size: 0.92rem; }
.editor-section-title {
  font-size: 0.82rem; font-weight: 600; color: var(--ink-dim);
  text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px;
}
