:root {
  --bg-pink: #fdefee;
  --card-bg: #fcf5f5;
  --coral: #f69299;
  --coral-dark: #ea7b82;
  --brown: #594a42;
  --brown-soft: #7c4f38;
  --gray-text: #9c8f8b;
  --wave-pink: #f69299;
}
* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Bootzy TM";
  src: url("../images/BootzyTM.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Kawaii RT";
  src: url("../images/KawaiiRT-Mona.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Urbanist";
  src: url("../images/Urbanist.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../images/Urbanist.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../images/Urbanist.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("../images/Urbanist.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fdefee;
  font-family: "Urbanist";
  position: relative;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.side-left {
  flex: 1 1 480px;
  min-width: 320px;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-circle img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}
.brand-name {
  font-family: "Kawaii RT";
  font-size: 30px;
  color: var(--coral);
  -webkit-text-stroke: 2.5px var(--brown-soft);
  paint-order: stroke fill;
  letter-spacing: 2px;
  line-height: 1;
}
.hero-copy {
  margin-top: 30px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero-copy h1 {
  font-family: "Bootzy TM";
  font-weight: 500;
  color: #7c4f38;
  font-size: 75px;
  line-height: 1.08;
  letter-spacing: 5px;
  margin: 0 0 18px 0;
  white-space: nowrap;
}
.hero-copy p {
  color: var(--brown);
  font-size: 25px;
  font-weight: 600;
  margin-top: -15px;
}
.hero-art {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-art img {
  width: 100%;
  max-width: 530px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 200px;
  margin-left: 150px;
}

.side-right {
  flex: 1 1 420px;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.card {
  background: #fcf5f5;
  width: 100%;
  max-width: 480px;
  border-radius: 28px;
  padding: 48px 44px 40px 44px;
  box-shadow: 0 10px 40px rgba(200, 120, 120, 0.12);
  text-align: center;
  margin-bottom: 100px;
}
.card h2 {
  font-family: "Bootzy TM";
  color: #7c4f38;
  font-size: 38px;
  letter-spacing: 5px;
  margin: 0 0 28px 0;
}
form {
  text-align: left;
}
label {
  display: block;
  font-weight: 600;
  color: var(--brown-soft);
  font-size: 14px;
  margin: 18px 0 8px 0;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fcf5f5;
  border: 2px solid #fde1e3;
  border-radius: 16px;
  padding: 8px 14px 8px 8px;
}
.input-icon {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #fde1e3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.input-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.input-icon svg {
  width: 18px;
  height: 18px;
}
input[type="text"],
input[type="password"] {
  border: none;
  outline: none;
  flex: 1;
  padding: 10px 4px;
  font-size: 15px;
  font-family: "Urbanist";
  background: transparent;
  color: #6b4536;
  min-width: 0;
}

.password-toggle {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: none;
  background: #f69299;
  padding: 0;
  cursor: pointer;
}
.password-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 26px 0;
  font-size: 14px;
  gap: 12px;
  flex-wrap: wrap;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brown-soft);
  font-weight: 600;
  height: 22px;
  line-height: 1;
}
.remember input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #f69299;
  border-radius: 5px;
  background: #fcf5f5;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.remember input:checked {
  background: #f69299;
  border-color: #f69299;
}
.remember input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.forgot {
  color: #f69299;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  height: 22px;
  line-height: 1;
}
.forgot:hover {
  text-decoration: underline;
}
button.login-btn {
  width: 100%;
  background: #f69299;
  color: #fffcfa;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-size: 17px;
  font-weight: 800;
  font-family: "Urbanist";
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s ease, transform 0.1s ease;
}
button.login-btn:hover {
  background: var(--coral-dark);
}
button.login-btn:active {
  transform: scale(0.99);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--gray-text);
  font-size: 13px;
  font-weight: 600;
  margin: 22px 0 18px 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #f4dcdb;
}
.divider span {
  padding: 0 12px;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.social-btn:hover {
  background: var(--coral-dark);
}
.social-btn:active {
  transform: scale(0.96);
}
.error-msg {
  background: #fde3e3;
  color: #b23b3b;
  border: 1px solid #f3b6b6;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.field-error {
  color: #c0392b;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 0;
  margin-top: 6px;
  line-height: 1.35;
}
.field-error:empty {
  margin-top: 0;
}
.input-wrap.has-error {
  border-color: #e57373;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
}
.wave img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }
  .side-left {
    padding: 32px 32px 8px 32px;
  }
  .hero-copy h1 {
    font-size: 30px;
    white-space: normal;
  }
  .hero-art {
    margin-top: 8px;
  }
  .hero-art svg {
    max-width: 360px;
  }
  .side-right {
    padding: 24px 20px 56px 20px;
  }
}
.guest {
  color: var(--gray-text);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  line-height: 1;
  margin-top: 20px;
}
.guest:hover {
  text-decoration: underline;
}

/* Responsiveness for mobile layout */
@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .page {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    width: 100%;
    padding: 0;
  }

  /* Unwraps .side-left */
  .side-left {
    display: contents;
  }

  /* TOPBAR */
  .topbar {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 32px 20px 16px 20px;
    margin: 0;
  }

  .logo-circle img {
    width: 54px;
    height: 54px;
  }

  .brand-name {
    font-size: 26px;
    -webkit-text-stroke: 2px var(--brown-soft);
  }

  /* SIDE-RIGHT In the middle */
  .side-right {
    order: 2;
    width: 100%;
    padding: 10px 20px 30px 20px;
    display: flex;
    justify-content: center;
  }

  .card {
    max-width: 380px;
    width: 100%;
    margin-bottom: 0;
    padding: 32px 24px 28px 24px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(200, 120, 120, 0.1);
  }

  .card h2 {
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 18px;
  }

  .step-dots {
    margin-bottom: 20px;
  }

  /* HERO-COPY*/
  .hero-copy {
    order: 3;
    width: 100%;
    max-width: 380px;
    padding: 0 20px;
    margin: 10px auto 0 auto;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: 32px;
    white-space: normal;
    letter-spacing: 1px;
    line-height: 1.15;
    margin: 0 0 8px 0;
  }

  .hero-copy p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--brown-soft);
  }

  /*  HERO-ART */
  .hero-art {
    order: 4;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 20px 0 20px;
    margin: 0;
    position: relative;
    z-index: 2;
  }

  .hero-art img {
    max-width: 310px;
    width: 85%;
    height: auto;
    margin: 0 auto;
    display: block;
  }

  /* WAVE:*/
  .wave {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-top: -45px;
    z-index: 1;
  }

  .wave img {
    width: 100%;
    height: auto;
  }
}

/* Server Error Container */
.server-error {
  background: #fde3e3;
  color: #b23b3b;
  border: 1px solid #f3b6b6;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
  display: none;
}

/* Google Sign-In Wrap */
.social-btn-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

#googleButtonHidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.001;
  z-index: 5;
  cursor: pointer;
}

/* Milky Marble SweetAlert System Style */
.swal2-container.mm-swal-container-top,
div.swal2-container.mm-swal-container-top {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(89, 74, 66, 0.55) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

div.swal2-popup.mm-swal-popup {
  background-color: #FFF5F4 !important;
  background: #FFF5F4 !important;
  border-radius: 28px !important;
  padding: 34px 28px 28px !important;
  border: 2px solid #FCE1DD !important;
  box-shadow: 0 20px 48px rgba(89, 74, 66, 0.28) !important;
  width: 90% !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

div.swal2-title.mm-swal-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  color: #594A42 !important;
  letter-spacing: 1.5px !important;
  margin: 12px 0 8px !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

div.swal2-html-container.mm-swal-html {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #7C4F38 !important;
  line-height: 1.5 !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

div.swal2-actions.mm-swal-actions {
  margin-top: 24px !important;
  gap: 12px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

button.swal2-confirm.mm-swal-confirm-btn {
  background-color: #F48A8E !important;
  background: #F48A8E !important;
  color: #FFFFFF !important;
  border-radius: 24px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 10px 26px !important;
  box-shadow: 0 4px 14px rgba(244, 138, 142, 0.4) !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, opacity 0.2s ease !important;
}

button.swal2-confirm.mm-swal-confirm-btn:hover {
  opacity: 0.92 !important;
  transform: scale(1.03) !important;
}

button.swal2-cancel.mm-swal-cancel-btn {
  background-color: #FDE9E6 !important;
  background: #FDE9E6 !important;
  color: #594A42 !important;
  border-radius: 24px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 10px 22px !important;
  border: none !important;
  cursor: pointer !important;
}
#forgotPasswordLink { margin-top: 6px; }

/* Forgot-password popup: remove SweetAlert's default blue focus ring */
div.swal2-popup.mm-swal-popup .swal2-input:focus,
div.swal2-popup.mm-swal-popup .swal2-textarea:focus {
  border-color: #FDE1E3 !important;
  box-shadow: none !important;
  outline: none !important;
}
button.swal2-cancel.mm-swal-cancel-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Popup fields: same look as the login form fields */
div.swal2-popup.mm-swal-popup .swal2-input,
div.swal2-popup.mm-swal-popup .swal2-textarea {
  box-sizing: border-box !important;
  background: #FCF5F5 !important;
  border: 2px solid #FDE1E3 !important;
  border-radius: 16px !important;
  padding: 10px 14px !important;
  font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #6B4536 !important;
  box-shadow: none !important;
  outline: none !important;
}
div.swal2-popup.mm-swal-popup .swal2-input::placeholder,
div.swal2-popup.mm-swal-popup .swal2-textarea::placeholder { color: #C9A9A0 !important; }

/* Password field with eye button (same round pink eye as the login form) */
div.swal2-popup.mm-swal-popup .mm-pw-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  background: #FCF5F5;
  border: 2px solid #FDE1E3;
  border-radius: 16px;
  padding: 0 8px;
  margin: 0 0 10px;
}

div.swal2-popup.mm-swal-popup .mm-pw-wrap input.swal2-input {
  flex: 1;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  padding: 10px 4px !important;
  border: none !important;
  background: transparent !important;
}
.mm-pw-toggle {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: none;
  background: #F69299;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.mm-pw-toggle svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
}