/* ════════════════════════════════
   AUTH SCREEN
   ════════════════════════════════ */
.auth-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.auth-logo {
  font-family: 'Lora', serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.auth-tagline { font-size: 14px; color: var(--t3); margin-bottom: 32px; }
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.auth-name-row { display: flex; gap: 8px; }
.auth-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--t1);
  outline: none;
}
.auth-input:focus { border-color: var(--terra); }
.auth-btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  background: var(--terra);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
  touch-action: manipulation;
}
.auth-error { font-size: 13px; color: var(--terra); min-height: 18px; text-align: center; }
.auth-toggle { margin-top: 20px; font-size: 14px; color: var(--t3); }
.auth-toggle span { color: var(--terra); cursor: pointer; font-weight: 500; }

/* ── Google sign-in button ── */
.google-btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--t1);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .15s, background .15s;
}
.google-btn:active { background: var(--bg2); }
.google-btn svg { flex-shrink: 0; }

/* ── Auth divider ("or") ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 4px 0;
}
.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider-text {
  font-size: 12px;
  color: var(--t4);
  font-weight: 400;
  white-space: nowrap;
}

/* ════════════════════════════════
   SHARED BUTTON COMPONENTS
   ════════════════════════════════ */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  touch-action: manipulation;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--t2);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.new-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--terra);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}
.new-btn svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ════════════════════════════════
   TOAST
   ════════════════════════════════ */
.toast {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2C2416;
  color: #FAF8F5;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transition: all .3s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════════════════════════════════
   FAB
   — position:absolute so it stays inside .app on desktop
   ════════════════════════════════ */
#fab-btn {
  display: none;
  position: absolute;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--terra);
  border: none;
  cursor: pointer;
  z-index: 100;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(193, 75, 42, .4);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#fab-btn svg { pointer-events: none; }
