
/* =====================================
   HOMIVA SIGNUP PAGE
   Clean, minimal, no image
===================================== */

:root {
  --cream: #fff8f4;
  --cream-dark: #f9f0eb;
  --input-bg: #f8efe9;
  --olive: #4c5632;
  --olive-hover: #3d4728;
  --dark: #292820;
  --muted: #77736d;
  --border: #eee3dc;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--dark);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

/* =====================================
   HEADER
===================================== */

.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
   background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 6px;
  line-height: 1.1;
  text-decoration: none;
}

.brand small {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 2.5px;
  line-height: 1.4;
}

/* Optional left-side HOMIVA link */

.back-home {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-decoration: none;
}

.back-home:hover {
  color: var(--olive);
}

/* =====================================
   MAIN SIGNUP AREA
===================================== */

.signup-layout {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(
      ellipse at 13% 20%,
      rgba(255, 239, 225, 0.65),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 91% 75%,
      rgba(232, 231, 210, 0.62),
      transparent 30%
    ),
    var(--cream);
}

/* Hide any old image/hero panel */

.hero {
  display: none !important;
}

/* Right-side wrapper becomes centered */

.form-side {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

/* =====================================
   SIGNUP CARD
===================================== */

.signup-card {
  width: 100%;
  max-width: 450px;
  padding: 28px 32px;
  border: 1px solid rgba(238, 227, 220, 0.55);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(68, 53, 40, 0.055);
}

/* =====================================
   FORM HEADING
===================================== */

.flower-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--input-bg);
  color: var(--olive);
  font-size: 21px;
}

.center {
  text-align: center;
}

.signup-card h2 {
  margin: 8px 0 5px;
  color: var(--dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}

.eyebrow {
  color: #82745e;
  font-size: 8px;
  letter-spacing: 3px;
  line-height: 1.8;
  text-align: center;
}

.subtitle {
  max-width: 330px;
  margin: 0 auto 21px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

/* =====================================
   LABELS
===================================== */

#signupForm > label:not(.terms),
.password-field > label {
  display: block;
  margin-bottom: 7px;
  color: #34332d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* =====================================
   NAME AND EMAIL INPUTS
===================================== */

#signupForm > input {
  display: block;
  width: 100%;
  height: 41px;
  margin-bottom: 14px;
  padding: 0 12px;
  border: 1px solid #eaded5;
  border-radius: 6px;
  outline: none;
  background: var(--input-bg);
  color: var(--dark);
  font-family: inherit;
  font-size: 11px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#signupForm input::placeholder {
  color: #aaa097;
}

#signupForm > input:focus,
.password-input:focus-within {
  border-color: #7c8564;
  box-shadow: 0 0 0 3px rgba(76, 86, 50, 0.07);
}

/* =====================================
   PASSWORD FIELDS
===================================== */

.password-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.password-field {
  min-width: 0;
}

.password-input {
  width: 100%;
  height: 41px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  padding-right: 7px;
  border: 1px solid #eaded5;
  border-radius: 6px;
  background: var(--input-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.password-input input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 9px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--dark);
  font-family: inherit;
  font-size: 10px;
}

.toggle-password {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  background: transparent;
  color: var(--olive);
  cursor: pointer;
}

/* =====================================
   TERMS AND CONDITIONS
===================================== */

.terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 1px 0 17px;
  color: #625e57;
  font-size: 9px;
  line-height: 1.65;
}

.terms input {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--olive);
  cursor: pointer;
}

.terms a {
  color: var(--olive);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================================
   CREATE ACCOUNT BUTTON
===================================== */

#signupButton {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 15px;
  border: none;
  border-radius: 6px;
  background: var(--olive);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(49, 57, 32, 0.15);
  transition: background 0.2s, transform 0.2s;
}

#signupButton:hover {
  background: var(--olive-hover);
}

#signupButton:active {
  transform: translateY(1px);
}

#signupButton:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* =====================================
   FETCH API RESPONSE MESSAGE
===================================== */

#signupMessage {
  margin-top: 10px;
  color: var(--olive);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

/* =====================================
   SIGN IN LINK
===================================== */

.signin-link {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.signin-link a {
  margin-left: 3px;
  color: var(--olive);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.signin-link a:hover,
.terms a:hover {
  text-decoration: underline;
}

/* =====================================
   FOOTER
===================================== */

footer {
  width: 100%;
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 5%;
  border-top: 1px solid var(--border);
  background: var(--cream-dark);
  color: #6f695f;
  font-size: 8px;
  letter-spacing: 0.2px;
}

footer div {
  display: flex;
  align-items: center;
  gap: 20px;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  color: var(--olive);
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 768px) {
  .signup-layout {
    min-height: auto;
    padding: 35px 18px;
  }

  .signup-card {
    max-width: 440px;
    padding: 27px 25px;
  }

  footer {
    padding-right: 4%;
    padding-left: 4%;
  }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 480px) {
  .topbar {
    min-height: 66px;
    padding: 10px 12px;
  }

  .brand {
    font-size: 23px;
    letter-spacing: 5px;
  }

  .topbar p {
    font-size: 7px;
    letter-spacing: 1.8px;
  }

  .back-home {
    left: 12px;
    font-size: 9px;
    letter-spacing: 0.5px;
  }

  .signup-layout {
    padding: 25px 14px;
  }

  .signup-card {
    max-width: 100%;
    padding: 25px 19px;
    border-radius: 10px;
  }

  .signup-card h2 {
    font-size: 26px;
  }

  .subtitle {
    margin-bottom: 20px;
  }

  .password-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .password-input {
    margin-bottom: 14px;
  }

  .terms {
    font-size: 9px;
  }

  footer {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 15px 12px;
    text-align: center;
    line-height: 1.6;
  }

  footer div {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }
}

