/* Pheedz auth - Dreamify-style shell, Pheedz brand */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --ember: #e85d2a;
  --ember-hover: #f06d3d;
  --ink: #0e1116;
  --card: rgba(22, 27, 34, 0.92);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f3f4f6;
  --muted: #9aa3af;
  --danger: #f87171;
  --ok: #34d399;
  --radius: 16px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.pheedz-auth {
  font-family: var(--font-body);
  color: var(--text);
  background: #0b0f14;
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(11, 15, 20, 0.78), rgba(11, 15, 20, 0.88)),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=2400&q=85')
      center / cover no-repeat;
}

.auth-nav {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.25rem 0;
}

.auth-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-nav a:hover {
  color: #fff;
}

.auth-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  padding: 1.75rem 1.5rem 1.5rem;
}

.auth-card.wide {
  max-width: 36rem;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.auth-brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ember), #f0a060);
  color: #0e1116;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.auth-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.auth-subtitle {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

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

.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #d1d5db;
}

.auth-field input,
.auth-field select {
  width: 100%;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 17, 22, 0.65);
  color: var(--text);
  padding: 0 1rem;
  font: inherit;
  outline: none;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: rgba(232, 93, 42, 0.7);
  box-shadow: 0 0 0 3px rgba(232, 93, 42, 0.18);
}

.auth-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 640px) {
  .auth-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.4;
}

.auth-check input {
  margin-top: 0.2rem;
}

.auth-check a {
  color: #fdba8c;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.25rem;
}

.auth-actions a,
.auth-footer a {
  color: #fdba8c;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-actions a:hover,
.auth-footer a:hover {
  text-decoration: underline;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.85rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, opacity 0.15s ease;
}

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

.auth-btn-primary {
  width: 100%;
  background: var(--ember);
  color: #fff;
}

.auth-btn-primary:hover:not(:disabled) {
  background: var(--ember-hover);
}

.auth-btn-secondary {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.auth-btn-google {
  width: 100%;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.auth-btn-google:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.auth-btn-google svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.35rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-alert {
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.auth-alert-error {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.auth-alert-ok {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.auth-footer {
  margin-top: 1.15rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hidden {
  display: none !important;
}
