/* ===========================================================
   On-brand auth pages (login / register) — matches picplop.com:
   slim teal top bar, soft blush page, branded card, shared footer.
   Loaded AFTER index.css and scoped to body.auth-body, so it
   never affects the rest of the app.
   =========================================================== */

body.auth-body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(150deg, #faf9f7 0%, #fff5f5 100%);
}

/* --- Slim teal top bar: logo + back to the marketing site --- */
.auth-topbar { background: linear-gradient(135deg, #1f6f7e 0%, #16565f 100%); }
.auth-topbar__inner {
  max-width: 1180px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.auth-topbar__brand img { height: 40px; width: auto; display: block; }
.auth-topbar__back {
  color: #eaf3f3; text-decoration: none; font-size: .9rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; opacity: .92;
  transition: opacity .15s ease, color .15s ease;
}
.auth-topbar__back:hover { opacity: 1; color: #fff; }

/* --- Centre the card between the bar and the footer --- */
.auth-main { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }

/* --- Branded card --- */
.auth-body .auth-container {
  background: #fff; border-radius: 18px; padding: 2.5rem; max-width: 420px; width: 100%;
  box-shadow: 0 24px 60px rgba(31, 111, 126, .18); border-top: 4px solid #beb073;
}
.auth-body .auth-header { text-align: center; margin-bottom: 1.5rem; }
.auth-body .auth-header h2 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  color: #1f6f7e; font-size: 1.85rem; font-weight: 700; margin: 0;
}
.auth-body .auth-sub { color: #636e72; font-size: .92rem; margin: .4rem 0 0; line-height: 1.5; }

/* ===========================================================
   Desktop split layout: an on-brand teal welcome panel beside
   the form, so wide screens use their width instead of one tall
   column. Collapses back to the lean single column on mobile.
   =========================================================== */
.auth-body .auth-container.auth-split {
  max-width: 880px; padding: 0; overflow: hidden;
  display: flex; align-items: stretch;
}
.auth-brand {
  flex: 0 0 44%; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #1f6f7e 0%, #16565f 100%);
  color: #fff; padding: 2.75rem 2.25rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1.05rem;
}
/* soft gold + teal glow accents */
.auth-brand::before {
  content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 176, 115, .38), transparent 70%);
  top: -130px; right: -110px;
}
.auth-brand::after {
  content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 70%);
  bottom: -120px; left: -90px;
}
.auth-brand__eyebrow {
  font-size: .72rem; letter-spacing: 3px; text-transform: uppercase;
  color: #ffd54a; font-weight: 700; margin: 0;
}

/* ---- Animated "Pose · Snap · Post" (ported from the marketing-site footer),
        centred at the top of the welcome panel. The panel is dark teal, so the
        footer's colours read perfectly. Replaces the old static eyebrow. ---- */
.auth-psp {
  margin: 0 0 .2rem; display: flex; gap: 12px; align-items: baseline; justify-content: center;
  font-weight: 800; font-size: 1.45rem; letter-spacing: 2px; text-transform: uppercase;
}
.auth-brand .psp-word { display: inline-block; position: relative; will-change: transform; transform-origin: bottom center; }
.auth-brand .psp-word--pose { color: #beb073; animation: psp-pose 3.8s cubic-bezier(.5,.05,.2,1) infinite; }
.auth-brand .psp-word--snap { color: #f3efe6; animation: psp-snap 3.8s cubic-bezier(.5,.05,.2,1) infinite; }
.auth-brand .psp-word--post { color: #6cc1d4; animation: psp-post 3.8s cubic-bezier(.5,.05,.2,1) infinite; }

@keyframes psp-pose {
  0%, 4%    { transform: rotate(0) skewX(0) scale(1);             text-shadow: 0 0 0 transparent; }
  11%       { transform: rotate(-7deg) skewX(-14deg) scale(1.14); text-shadow: 0 0 18px rgba(190,176,115,.9); }
  22%       { transform: rotate(-4deg) skewX(-8deg)  scale(1.08); text-shadow: 0 0 12px rgba(190,176,115,.55); }
  30%, 100% { transform: rotate(0) skewX(0) scale(1);             text-shadow: 0 0 0 transparent; }
}
@keyframes psp-snap {
  0%, 31%   { transform: scale(1);    filter: brightness(1); }
  37%       { transform: scale(1.28); filter: brightness(2.4); }
  45%       { transform: scale(.95);  filter: brightness(1); }
  52%, 100% { transform: scale(1);    filter: brightness(1); }
}
.auth-brand .psp-word--snap::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 150%; height: 320%;
  transform: translate(-50%, -50%) scale(.4); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.5) 35%, transparent 70%);
  opacity: 0; pointer-events: none; mix-blend-mode: screen; filter: blur(1px);
  animation: psp-flash 3.8s ease-out infinite;
}
@keyframes psp-flash {
  0%, 33% { opacity: 0; transform: translate(-50%,-50%) scale(.4); }
  37%     { opacity: 1; transform: translate(-50%,-50%) scale(1.05); }
  46%     { opacity: 0; transform: translate(-50%,-50%) scale(1.7); }
  100%    { opacity: 0; }
}
@keyframes psp-post {
  0%, 55% { transform: translateY(0) scale(1);       text-shadow: 0 0 0 transparent; }
  64%     { transform: translateY(-12px) scale(1.2); text-shadow: 0 0 18px rgba(108,193,212,.95); }
  72%     { transform: translateY(3px) scale(.96);   text-shadow: 0 0 10px rgba(108,193,212,.5); }
  80%,100%{ transform: translateY(0) scale(1);       text-shadow: 0 0 0 transparent; }
}
.auth-brand .psp-word--post::before {
  content: "✦"; position: absolute; left: 50%; top: -2px; font-size: .6em; color: #9bdcea;
  transform: translate(-50%, 4px) scale(0); opacity: 0; pointer-events: none;
  animation: psp-spark 3.8s ease-out infinite;
}
@keyframes psp-spark {
  0%, 57% { opacity: 0; transform: translate(-50%, 4px) scale(0); }
  66%     { opacity: 1; transform: translate(-50%, -14px) scale(1.1); }
  78%     { opacity: 0; transform: translate(-50%, -26px) scale(.6); }
  100%    { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-brand .psp-word { animation: none !important; }
  .auth-brand .psp-word--snap::after, .auth-brand .psp-word--post::before { display: none; }
}
.auth-brand__title {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-size: 1.7rem; line-height: 1.22; margin: 0; font-weight: 700;
  /* Gold (was inheriting a near-black h3 colour from index.css → unreadable on teal). */
  color: #ffd54a;
}
.auth-brand__text { margin: 0; font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .85); }
.auth-brand__list { list-style: none; margin: .35rem 0 0; padding: 0; display: grid; gap: .55rem; }
.auth-brand__list li { position: relative; padding-left: 1.7rem; font-size: .88rem; color: rgba(255, 255, 255, .94); }
.auth-brand__list li::before {
  content: "✓"; position: absolute; left: 0; top: -.05rem;
  color: #143b43; background: #ffd54a; font-size: .68rem; font-weight: 800;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.auth-pane {
  flex: 1 1 56%; padding: 2.25rem; display: flex; flex-direction: column; justify-content: center;
}
/* Stack on small screens — keep the lean single-column mobile look unchanged. */
@media (max-width: 720px) {
  .auth-body .auth-container.auth-split { display: block; max-width: 420px; }
  .auth-brand { display: none; }
  .auth-pane { padding: 1.6rem 1.75rem; }
}

/* --- Inputs: teal focus ring --- */
.auth-body .form-group input:focus {
  border-color: #1f6f7e; box-shadow: 0 0 0 3px rgba(31, 111, 126, .12); outline: none;
}

/* --- Primary CTA → marketing muted-gold gradient (matches the footer CTA) --- */
.auth-body .btn-primary {
  background: linear-gradient(135deg, #d8c87f 0%, #beb073 55%, #a8995c 100%);
  color: #143b43; border: none; font-weight: 700; box-shadow: 0 6px 18px rgba(190, 176, 115, .3);
}
.auth-body .btn-primary:hover {
  filter: none; transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(190, 176, 115, .45); color: #143b43;
}

/* --- "Just exploring?" demo block: clearly secondary (teal outline) --- */
.auth-alt { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px dashed var(--border, #e8e4dc); text-align: center; }
.auth-alt__label { color: #636e72; font-size: .85rem; margin: 0 0 .65rem; }
.auth-body .btn-demo {
  background: #fff; color: #1f6f7e; border: 1.6px solid #1f6f7e; font-weight: 600; text-decoration: none;
}
.auth-body .btn-demo:hover {
  background: #1f6f7e; color: #fff; filter: none;
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31, 111, 126, .28);
}
.auth-body .auth-demo-note { margin: .55rem 0 0; }

/* --- Terms consent checkbox + gated Google button --- */
.auth-body .form-agree { margin: .2rem 0 .9rem; }
.agree-label { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer;
  font-size: .82rem; color: #636e72; line-height: 1.45; text-align: left; }
.agree-label input[type="checkbox"] { margin-top: .15rem; width: 16px; height: 16px;
  flex: 0 0 auto; accent-color: #1f6f7e; cursor: pointer; }
.agree-label a { color: #1f6f7e; text-decoration: underline; }
.auth-body .btn-google.is-disabled { opacity: .5; cursor: not-allowed; }
.google-consent-hint { display: none; margin: .4rem 0 0; font-size: .78rem;
  color: #a8995c; text-align: center; }

/* --- Misc links / forgot password --- */
.auth-body .auth-footer { margin-top: 1.4rem; }
.auth-body .auth-footer a { color: #1f6f7e; }
.auth-forgot { text-align: center; margin-top: .85rem; }
.auth-forgot a { color: #636e72; font-size: .85rem; text-decoration: none; }
.auth-forgot a:hover { color: #1f6f7e; }

@media (max-width: 480px) {
  .auth-body .auth-container { padding: 2rem 1.5rem; }
  .auth-topbar__back .full { display: none; }
}

/* ---- Compact one-screen fit: form + footer visible without scrolling ---- */
.auth-topbar__brand img { height: 50px; }            /* match the main-site nav logo */
.auth-topbar__inner { padding: 10px 24px; }
.auth-main { padding: 16px 20px; }
.auth-body .auth-container { padding: 1.5rem 2rem 1.6rem; }
.auth-body .auth-header { margin-bottom: .7rem; }
.auth-body .form-group { margin-bottom: .65rem; }
.auth-body .auth-divider { margin: .7rem 0; }
.auth-alt { margin-top: .8rem; padding-top: .8rem; }
.auth-body .auth-demo-note { margin: .4rem 0 0; }
.auth-body .auth-footer { margin-top: .75rem; }

/* ---- Slim brand footer (the full footer is kept for content pages) ---- */
.auth-foot { background: linear-gradient(135deg, #1f6f7e 0%, #16565f 100%); border-top: 3px solid #beb073; color: #aebcbc; font-size: .82rem; }
.auth-foot__inner { max-width: 1180px; margin: 0 auto; padding: 13px 24px; display: flex; align-items: center; justify-content: space-between; gap: 8px 22px; flex-wrap: wrap; }
.auth-foot p { margin: 0; }
.auth-foot a { color: #cdd9d9; text-decoration: none; }
.auth-foot a:hover { color: #beb073; }
.auth-foot__malaga { color: #ffd54a !important; font-weight: 600; }
.auth-foot__malaga:hover { color: #fff !important; }
@media (max-width: 600px) { .auth-foot__inner { flex-direction: column; text-align: center; gap: 8px; } }
