/* PlayOSUniverse — Sign up / Sign in pages
   Static, dependency-free. Success/error styles are prepared but never
   faked: for now only the honest "not live yet" info state is shown. */

.auth-main {
  padding: 56px 0 80px;
  min-height: 62vh;
}

.auth-layout {
  max-width: 460px;
  margin: 0 auto;
}

.auth-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(45, 212, 191, 0.06);
}

.auth-card h1 {
  margin: 6px 0 10px;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.auth-sub {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 24px;
}
.auth-sub a { color: var(--accent); font-weight: 600; }

/* ---------- Social buttons ---------- */
.social-row {
  display: grid;
  gap: 10px;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.social-btn svg { flex: none; }
.social-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-2); }
.social-btn:active:not(:disabled) { transform: translateY(1px); }
.social-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.social-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  border: 1px solid var(--border-strong);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--faint);
  font-size: 12.5px;
  margin: 22px 0;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border);
}

/* ---------- Fields ---------- */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus-visible {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field input.invalid { border-color: #f87171; }
.field input.invalid:focus-visible { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18); }

.field-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--faint); }
.field-error { margin: 6px 0 0; font-size: 13px; color: #fca5a5; }
.field-error:empty { display: none; }

.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.toggle-password {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.toggle-password:hover { color: var(--text); background: var(--surface-2); }
.toggle-password:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-strong); }

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

/* ---------- Honest status (role=status) ---------- */
.auth-status {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid;
}
.auth-status[hidden] { display: none; }
.auth-status-info    { color: #99f6e4; background: rgba(45, 212, 191, 0.08); border-color: rgba(45, 212, 191, 0.35); }
/* Prepared for the future backend, never faked today: */
.auth-status-success { color: #86efac; background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.35); }
.auth-status-error   { color: #fca5a5; background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.35); }

/* ---------- Notes ---------- */
.auth-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.auth-note + .auth-note { margin-top: 10px; border-top: none; padding-top: 0; }
.auth-note code { font-family: var(--mono); color: var(--accent); font-size: 12.5px; }
.auth-note a { color: var(--accent); font-weight: 600; }

.auth-forgot {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--faint);
}
.auth-forgot em { font-style: normal; }

@media (max-width: 620px) {
  .auth-card { padding: 26px 20px; }
}
