
/* ==========================================
   INNER INDEX
   Dreamy • Whimsical • Responsive
========================================== */

:root {
  --purple: #9874c4;
  --purple-dark: #59416f;
  --purple-soft: #c9afe9;
  --pink: #f2c8e2;
  --muted: #93819f;
  --cream: #fffaff;
  --glass: rgba(255, 251, 255, 0.83);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--purple-dark);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;

  background:
    radial-gradient(ellipse at 50% 15%, #fffaff 0%, transparent 44%),
    radial-gradient(ellipse at 8% 60%, #f1d9fa 0%, transparent 38%),
    radial-gradient(ellipse at 95% 35%, #dcd7ff 0%, transparent 40%),
    linear-gradient(150deg, #f8efff, #faeef7 55%, #eeeaff);
}

/* ------------------------------------------
   AMBIENT LIGHT
------------------------------------------ */

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.38;
  pointer-events: none;
  animation: ambient-drift 14s ease-in-out infinite alternate;
}

body::before {
  top: 12%;
  left: -180px;
  background: #dfc2ff;
}

body::after {
  right: -180px;
  bottom: 8%;
  background: #ffcde9;
  animation-delay: -6s;
}

@keyframes ambient-drift {
  from {
    transform: translate(0, 0) scale(0.92);
  }

  to {
    transform: translate(35px, -28px) scale(1.12);
  }
}

/* ------------------------------------------
   MOVING BACKGROUND LAYER
   JavaScript moves the animals and flowers.
------------------------------------------ */

.garden-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.wanderer {
  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(36px, 4.8vw, 61px);
  line-height: 1;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 6px 7px #7955ac2b);
}

#roamingPig {
  z-index: 2;
}

#roamingElephant {
  z-index: 3;
}

.wind-flower {
  position: absolute;
  top: 0;
  left: 0;
  font-size: clamp(20px, 3vw, 35px);
  opacity: 0.78;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 4px 7px #a17cc522);
}

.flower-one {
  color: #e8a8d3;
}

.flower-two {
  color: #e9c5a3;
}

.flower-three {
  color: #d8a9e9;
}

.flower-four {
  color: #c8a6ed;
}

.flower-five {
  color: #efaed4;
}

.flower-six {
  color: #d6a6ed;
}

.floating-star {
  position: absolute;
  color: #bba0df;
  opacity: 0.6;
  animation: star-float 5s ease-in-out infinite;
}

.star-one {
  top: 23%;
  left: 10%;
  font-size: 25px;
}

.star-two {
  top: 64%;
  left: 18%;
  font-size: 16px;
  animation-delay: -2s;
}

.star-three {
  top: 32%;
  right: 12%;
  font-size: 30px;
  animation-delay: -3s;
}

.star-four {
  top: 76%;
  right: 17%;
  font-size: 17px;
  animation-delay: -1s;
}

@keyframes star-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-18px) rotate(35deg);
    opacity: 0.85;
  }
}

/* ------------------------------------------
   HEADER
------------------------------------------ */

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, 90%);
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-dark);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid #ffffffc9;
  border-radius: 13px 13px 13px 5px;
  background: linear-gradient(145deg, #c8a8ef, #a67bd2);
  box-shadow: 0 5px 16px #a77cd333;
  color: white;
}

.top-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.tiny-heart {
  margin-right: 5px;
  color: #c28bc8;
}

/* ------------------------------------------
   CENTERED PAGE
------------------------------------------ */

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 25px 20px 25px;
}

.hero {
  width: 100%;
  max-width: 670px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 19px;
  color: #9b79be;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2.3px;
}

.eyebrow-line {
  width: 20px;
  height: 1px;
  background: #c6a7df;
}

h1 {
  margin: 0;
  color: #55406b;
  font-size: clamp(2.7rem, 6.2vw, 4.6rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -2.7px;
}

h1 em {
  color: #9a75c7;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.intro {
  max-width: 435px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* ------------------------------------------
   LITTLE GARDEN DECORATION
------------------------------------------ */

.garden-decoration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(400px, 100%);
  height: 75px;
  margin: 3px auto 0;
}

.scene-ground {
  position: absolute;
  bottom: 12px;
  width: 75%;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    #d9ebcb80,
    #e5d8f680,
    #f5d8e980
  );
  filter: blur(14px);
}

.scene-flower {
  position: absolute;
  z-index: 1;
  font-size: 30px;
  animation: scene-breeze 4s ease-in-out infinite;
}

.scene-left {
  left: 12%;
  bottom: 7px;
}

.scene-right {
  right: 12%;
  top: 1px;
  animation-delay: -2s;
}

.scene-sparkle {
  position: absolute;
  color: #b99bda;
  font-size: 20px;
  animation: star-float 4s ease-in-out infinite;
}

.sparkle-left {
  left: 29%;
  top: 7px;
}

.sparkle-right {
  right: 30%;
  bottom: 4px;
  animation-delay: -1.5s;
}

.scene-caption {
  position: absolute;
  bottom: 0;
  z-index: 1;
  color: #ac93bd;
  font-family: Georgia, serif;
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0.5px;
}

@keyframes scene-breeze {
  0%, 100% {
    transform: translateY(0) rotate(-9deg);
  }

  50% {
    transform: translateY(-7px) rotate(11deg);
  }
}

/* ------------------------------------------
   LOGIN CARD
------------------------------------------ */

.login-card {
  position: relative;
  width: min(410px, 100%);
  margin: 9px auto 35px;
  padding: 29px 30px 23px;
  overflow: hidden;
  border: 1px solid #ffffffdf;
  border-radius: 27px;

  background: var(--glass);

  box-shadow:
    0 22px 65px #8062a51a,
    0 4px 15px #a27ec012,
    inset 0 1px 0 #ffffff;

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  animation: card-arrive 0.7s ease both;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    #c9a7ee,
    #f0c6e5,
    transparent
  );
}

@keyframes card-arrive {
  from {
    opacity: 0;
    transform: translateY(13px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-heading {
  text-align: center;
}

.card-sparkle {
  display: inline-block;
  color: #b28bd7;
  font-size: 27px;
  animation: sparkle-turn 10s linear infinite;
}

@keyframes sparkle-turn {
  to {
    transform: rotate(360deg);
  }
}

.card-heading h2 {
  margin: 7px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.7px;
}

.card-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* ------------------------------------------
   LOGIN / SIGNUP TABS
------------------------------------------ */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 23px 0 21px;
  padding: 5px;
  border: 1px solid #eee2f6;
  border-radius: 14px;
  background: #f1eafa;
}

.tab {
  min-width: 0;
  padding: 11px 5px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #9483a6;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.25s;
}

.tab.active {
  color: #72519d;
  background: #fffdfd;
  box-shadow: 0 3px 10px #7d599e12;
}

.tab:focus-visible,
.primary:focus-visible,
.logout:focus-visible {
  outline: 3px solid #c5a6e8;
  outline-offset: 3px;
}

/* ------------------------------------------
   INPUTS
------------------------------------------ */

label {
  display: block;
  margin: 16px 0 7px;
  color: #665275;
  font-size: 0.81rem;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  color: #b29acb;
  font-size: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input {
  padding-left: 39px;
}

input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #e9def1;
  border-radius: 13px;
  outline: none;
  background: #fffdfedb;
  color: #503968;
  font-family: inherit;
  font-size: 0.9rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

input::placeholder {
  color: #b8a9c4;
}

input:hover {
  border-color: #d5c1e7;
}

input:focus {
  border-color: #b59ada;
  background: #ffffff;
  box-shadow: 0 0 0 4px #b59ada20;
}

form small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

/* ------------------------------------------
   BUTTON
------------------------------------------ */

.primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  margin-top: 23px;
  padding: 13px 18px;
  border: 1px solid #b39ad7;
  border-radius: 14px;
  background: linear-gradient(
    110deg,
    #9270c2,
    #ad8bd1 60%,
    #bd98d9
  );
  box-shadow: 0 7px 18px #9874bd35;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}

.button-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px #9874bd4a;
  filter: saturate(1.08);
}

.primary:hover .button-arrow {
  transform: translate(3px, -2px);
}

.primary:active {
  transform: translateY(0) scale(0.99);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* ------------------------------------------
   PRIVACY NOTE AND MESSAGES
------------------------------------------ */

.message {
  min-height: 18px;
  margin: 13px 0 0;
  color: #775e8d;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-align: center;
}

.privacy-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid #eee4f2;
  color: #9a89a6;
  font-size: 0.73rem;
}

.privacy-note span {
  color: #c58fc5;
  font-size: 0.95rem;
}

/* ------------------------------------------
   PROFILE SETUP
------------------------------------------ */

.profile-card {
  margin-top: 20px;
}

/* ------------------------------------------
   PRIVATE DASHBOARD
------------------------------------------ */

.dashboard {
  width: min(920px, 100%);
  margin: 15px auto 35px;
  animation: card-arrive 0.7s ease both;
}

.welcome-card {
  padding: 34px 20px;
  border: 1px solid #ffffffdf;
  border-radius: 26px;
  background: var(--glass);
  box-shadow: 0 18px 50px #8062a51a;
  text-align: center;
  backdrop-filter: blur(15px);
}

.welcome-icon {
  display: inline-block;
  font-size: 2.5rem;
  animation: scene-breeze 4s ease-in-out infinite;
}

.welcome-card .eyebrow {
  margin-top: 16px;
}

.welcome-card h2 {
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 500;
}

.welcome-card h2 span {
  color: var(--purple);
}

.welcome-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.username-display {
  color: var(--purple);
  font-size: 0.85rem;
}

.garden-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-top: 20px;
}

.garden-card {
  min-width: 0;
  padding: 25px 22px;
  border: 1px solid #ffffffdf;
  border-radius: 22px;
  background: #fffaffc9;
  box-shadow: 0 10px 30px #8062a510;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  backdrop-filter: blur(12px);
}

.garden-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px #8062a520;
}

.tile-icon {
  display: inline-grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(140deg, #f3e3ff, #fce5f1);
  font-size: 1.7rem;
}

.garden-card h3 {
  margin: 16px 0 9px;
  font-size: 1rem;
}

.garden-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

.card-label {
  display: inline-block;
  margin-top: 14px;
  color: #a185ba;
  font-size: 0.72rem;
  font-style: italic;
}

.logout {
  display: block;
  margin: 23px auto 0;
  padding: 11px 23px;
  border: 1px solid #e3d3ef;
  border-radius: 12px;
  background: #fffaff;
  color: var(--purple);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.logout:hover {
  transform: translateY(-2px);
  background: #f4eafd;
}

/* ------------------------------------------
   FOOTER
------------------------------------------ */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  padding: 20px 0 8px;
  color: #a394b1;
  font-size: 0.76rem;
  letter-spacing: 0.3px;
}

footer span:first-child,
footer span:last-child {
  color: #c7a0dc;
}

/* ------------------------------------------
   TABLET
------------------------------------------ */

@media (max-width: 760px) {
  .page {
    padding-top: 20px;
  }

  .garden-cards {
    grid-template-columns: 1fr;
  }

  .garden-card {
    display: grid;
    grid-template-columns: 55px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 19px;
  }

  .tile-icon {
    grid-row: span 3;
  }

  .garden-card h3 {
    margin: 0 0 5px;
  }

  .garden-card p,
  .garden-card .card-label {
    grid-column: 2;
  }

  .garden-card .card-label {
    margin-top: 8px;
  }
}

/* ------------------------------------------
   PHONE
------------------------------------------ */

@media (max-width: 480px) {
  .topbar {
    width: 90%;
    padding: 17px 0;
  }

  .brand {
    gap: 8px;
    font-size: 1rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px 11px 11px 4px;
  }

  .top-note {
    max-width: 130px;
    font-size: 0.69rem;
    text-align: right;
  }

  .page {
    padding: 22px 17px;
  }

  .hero {
    max-width: 100%;
  }

  .eyebrow {
    gap: 7px;
    font-size: 0.57rem;
    letter-spacing: 1.5px;
  }

  .eyebrow-line {
    width: 12px;
  }

  h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    letter-spacing: -1.8px;
  }

  .intro {
    max-width: 320px;
    margin-top: 15px;
    font-size: 0.87rem;
    line-height: 1.75;
  }

  .garden-decoration {
    height: 65px;
    margin-top: 3px;
  }

  .scene-flower {
    font-size: 25px;
  }

  .login-card {
    padding: 25px 21px 21px;
    margin-top: 8px;
    border-radius: 23px;
  }

  .card-heading h2 {
    font-size: 1.72rem;
  }

  .tabs {
    margin-top: 20px;
    margin-bottom: 19px;
  }

  input {
    padding: 12px;
    font-size: 16px;
  }

  .input-wrap input {
    padding-left: 38px;
  }

  .primary {
    min-height: 48px;
  }

  .welcome-card {
    padding: 28px 16px;
  }

  .garden-card {
    padding: 17px;
  }

  footer {
    font-size: 0.69rem;
  }

  /* Keep wandering characters from dominating small screens. */
  .wanderer {
    font-size: 35px;
  }

  .wind-flower {
    font-size: 21px;
  }
}

/* ------------------------------------------
   VERY SMALL PHONES
------------------------------------------ */

@media (max-width: 350px) {
  .top-note {
    display: none;
  }

  .page {
    padding-right: 12px;
    padding-left: 12px;
  }

  h1 {
    font-size: 2.3rem;
  }

  .login-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .wanderer {
    font-size: 30px;
  }
}

/* ------------------------------------------
   ACCESSIBILITY
------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   CLEAN SUPABASE-INSPIRED LOOK
========================================== */

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24292f;
  background:
    radial-gradient(ellipse at 50% 0%, #ffffff 0%, transparent 55%),
    linear-gradient(145deg, #f7f9fc, #f3f5f8);
}

/* Remove decorative symbols around text */
.brand-icon,
.tiny-heart,
.eyebrow-line,
.card-sparkle,
.input-icon,
.privacy-note span,
.scene-sparkle,
.floating-star,
footer span {
  display: none !important;
}

/* Simple brand */
.brand {
  gap: 0;
  color: #24292f;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.5px;
}

.top-note {
  color: #6b7280;
  font-style: normal;
}

/* Clean, casual heading */
.eyebrow {
  display: block;
  color: #687385;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
}

h1 {
  color: #20252d;
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -2px;
  line-height: 1.08;
}

h1 em {
  color: #3b82a0;
  font-family: inherit;
  font-weight: 650;
  font-style: normal;
}

.intro {
  color: #697586;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Clean card */
.login-card,
.welcome-card {
  border: 1px solid #e5e9ef;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(20, 35, 55, 0.06);
  backdrop-filter: blur(12px);
}

.login-card::before {
  display: none;
}

.card-heading h2,
.welcome-card h2 {
  color: #24292f;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.7px;
}

.card-heading p,
.welcome-card p {
  color: #697586;
}

/* Tabs */
.tabs {
  border: 1px solid #e5e9ef;
  border-radius: 10px;
  background: #f5f7fa;
}

.tab {
  border-radius: 7px;
  color: #697586;
  font-weight: 550;
}

.tab.active {
  color: #24292f;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 35, 55, 0.1);
}

/* Inputs */
label {
  color: #374151;
  font-weight: 550;
}

input {
  border-color: #d9dfe7;
  border-radius: 9px;
  background: #ffffff;
  color: #24292f;
  font-family: inherit;
}

input::placeholder {
  color: #9ca3af;
}

input:focus {
  border-color: #7aa9bd;
  box-shadow: 0 0 0 3px rgba(59, 130, 160, 0.12);
}

/* Main button */
.primary {
  justify-content: center;
  border: 1px solid #277c9b;
  border-radius: 9px;
  background: #277c9b;
  box-shadow: none;
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
}

.primary:hover {
  background: #206982;
  box-shadow: 0 4px 12px rgba(39, 124, 155, 0.16);
  filter: none;
}

.primary .button-arrow {
  display: none;
}

/* Privacy note */
.privacy-note {
  border-top-color: #edf0f4;
  color: #7b8492;
}

/* Dashboard cards */
.garden-card {
  border-color: #e5e9ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(20, 35, 55, 0.04);
}

.garden-card:hover {
  box-shadow: 0 10px 25px rgba(20, 35, 55, 0.08);
}

.garden-card h3 {
  color: #24292f;
  font-weight: 600;
}

.garden-card p {
  color: #697586;
}

.tile-icon {
  border-radius: 12px;
  background: #f0f5f7;
}

.logout {
  border-color: #d9dfe7;
  border-radius: 9px;
  background: #ffffff;
  color: #374151;
  font-family: inherit;
}

.logout:hover {
  background: #f5f7fa;
}

/* Footer */
footer {
  color: #8a93a0;
  font-family: inherit;
  font-style: normal;
}
.topbar {
  display: none;
}