/* Local login entrance redesign using real image assets, not CSS-drawn icons. */
.cozy-login-page {
  min-height: 100vh;
  margin: 0;
  color: #5a3b21;
  background:
    linear-gradient(90deg, rgba(109, 139, 84, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(109, 139, 84, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f4efcf 0%, #f8f0d5 56%, #dbe9b6 100%);
  background-size: 36px 36px, 36px 36px, auto;
  font-family: "Noto Sans Thai", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}

.cozy-login-shell {
  position: relative;
  min-height: 100vh;
  width: min(1390px, calc(100% - 72px));
  margin: 0 auto;
  padding: clamp(34px, 4.6vh, 58px) 0;
  display: grid;
  place-items: center;
}

.cozy-bg-cloud,
.cozy-bg-leaf {
  position: fixed;
  pointer-events: none;
  user-select: none;
  opacity: 0.54;
  filter: drop-shadow(0 8px 10px rgba(102, 78, 36, 0.1));
}

.cozy-bg-cloud {
  width: clamp(110px, 9vw, 156px);
}

.cloud-left {
  left: 44px;
  top: 50px;
}

.cloud-right {
  right: 58px;
  top: 42px;
}

.cozy-bg-leaf {
  width: 64px;
  opacity: 0.34;
}

.leaf-one {
  left: 135px;
  top: 150px;
  transform: rotate(-12deg);
}

.leaf-two {
  right: 126px;
  top: 160px;
  transform: rotate(18deg) scale(0.9);
}

.cozy-board {
  position: relative;
  width: 100%;
  min-height: min(760px, calc(100vh - 84px));
  aspect-ratio: 16 / 8.35;
  padding: clamp(70px, 6vw, 94px) clamp(58px, 5.2vw, 88px) clamp(34px, 3vw, 46px);
  display: grid;
  grid-template-rows: minmax(220px, 0.86fr) minmax(280px, 1fr) 42px;
  gap: 12px;
  border: 8px solid #b88549;
  border-radius: 42px;
  background:
    linear-gradient(90deg, rgba(190, 138, 73, 0.105) 1px, transparent 1px),
    linear-gradient(rgba(190, 138, 73, 0.095) 1px, transparent 1px),
    linear-gradient(180deg, #fff7de 0%, #fff0ca 100%);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow:
    inset 0 0 0 4px #ffe7b4,
    inset 0 0 0 7px rgba(137, 91, 42, 0.22),
    0 20px 38px rgba(105, 75, 33, 0.2);
}

.cozy-board::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 2px dashed rgba(172, 122, 61, 0.43);
  border-radius: 30px;
  pointer-events: none;
}

.cozy-board-tab {
  position: absolute;
  left: 50%;
  top: -48px;
  width: 206px;
  height: 92px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  border: 7px solid #b88549;
  border-bottom: 0;
  border-radius: 58px 58px 22px 22px;
  background: linear-gradient(#ffe7ad, #ffd98d);
  box-shadow: inset 0 0 0 4px #fff3cf;
}

.cozy-board-tab img {
  width: 54px;
  opacity: 0.76;
}

.cozy-lang-badge {
  position: absolute;
  left: clamp(60px, 5vw, 86px);
  top: clamp(64px, 5.2vw, 88px);
  width: 86px;
  height: 98px;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 4px solid #c39150;
  border-radius: 18px;
  background: #ffeaba;
  box-shadow: 0 8px 0 rgba(137, 93, 43, 0.14);
}

.cozy-lang-badge span {
  color: #7a4b20;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.cozy-lang-badge small {
  min-width: 54px;
  padding: 2px 7px;
  border-radius: 7px;
  color: white;
  background: #4f8a36;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.cozy-hero-cat {
  position: absolute;
  right: clamp(38px, 4vw, 70px);
  top: clamp(42px, 4.4vw, 76px);
  z-index: 3;
  width: clamp(190px, 17vw, 255px);
  filter:
    drop-shadow(0 10px 0 rgba(126, 82, 32, 0.08))
    drop-shadow(0 16px 18px rgba(105, 75, 33, 0.14));
}

.cozy-copy {
  position: relative;
  z-index: 2;
  width: min(820px, calc(100% - 320px));
  margin: 0 auto;
  padding-top: 10px;
  text-align: center;
}

.cozy-copy p {
  margin: 0 0 4px;
  color: #4f7f36;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.15;
  font-weight: 900;
}

.cozy-copy h1 {
  margin: 0 0 12px;
  color: #4a7f39;
  font-size: clamp(58px, 5.4vw, 88px);
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    2px 2px 0 #f7dda0,
    0 5px 0 rgba(106, 70, 29, 0.1);
}

.cozy-copy span {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  color: #624426;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 800;
  line-height: 1.55;
}

.cozy-choice-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.3vw, 30px);
  align-self: end;
  margin: 0 clamp(14px, 2vw, 28px);
}

.cozy-choice {
  min-height: 286px;
  padding: 20px 26px 24px;
  display: grid;
  justify-items: center;
  align-content: start;
  border: 3px dashed #9dbb78;
  border-radius: 28px;
  color: #5a3b21;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 248, 226, 0.88));
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.62),
    0 10px 20px rgba(126, 89, 42, 0.14);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cozy-choice:hover,
.cozy-choice:focus-visible {
  transform: translateY(-5px);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.74),
    0 16px 28px rgba(126, 89, 42, 0.22);
  outline: none;
}

.cozy-choice-login {
  border-color: rgba(116, 155, 63, 0.6);
}

.cozy-choice-signup {
  border-color: rgba(218, 151, 35, 0.62);
}

.cozy-choice-trial {
  border-color: rgba(72, 150, 190, 0.58);
}

.cozy-choice-label {
  min-width: 166px;
  min-height: 39px;
  margin: -4px auto 8px;
  padding: 6px 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 -4px 0 rgba(83, 50, 20, 0.14);
}

.cozy-choice-login .cozy-choice-label {
  background: linear-gradient(#85b75e, #4e8a35);
}

.cozy-choice-signup .cozy-choice-label {
  background: linear-gradient(#f0b63d, #d88816);
}

.cozy-choice-trial .cozy-choice-label {
  background: linear-gradient(#55aee0, #247cad);
}

.cozy-choice-art {
  position: relative;
  width: 174px;
  height: 126px;
  display: block;
}

.cozy-art-main {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cozy-art-paw,
.cozy-art-leaf {
  position: absolute;
  width: 38px;
  right: 5px;
  bottom: 4px;
  opacity: 0.85;
}

.cozy-art-leaf {
  right: -4px;
  bottom: 14px;
  transform: rotate(18deg);
}

.cozy-trial-art img {
  position: absolute;
  object-fit: contain;
}

.trial-notebook {
  left: 43px;
  top: 2px;
  width: 78px;
}

.trial-pencil {
  right: 10px;
  top: 34px;
  width: 60px;
  transform: rotate(-12deg);
}

.trial-fish {
  left: 50px;
  top: 48px;
  width: 42px;
}

.trial-yarn {
  left: 8px;
  bottom: 2px;
  width: 54px;
}

.cozy-choice strong {
  margin-top: 5px;
  color: #4e8a35;
  font-size: clamp(31px, 2.8vw, 40px);
  line-height: 1.12;
  text-shadow: 1px 1px 0 #fff6d8;
}

.cozy-choice-signup strong {
  color: #bd7515;
}

.cozy-choice-trial strong {
  color: #247cad;
}

.cozy-choice small {
  width: min(100%, 260px);
  margin: 10px auto 0;
  color: #5c4226;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 800;
  line-height: 1.5;
}

.cozy-footer {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 76px);
  color: #6e4c29;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 900;
}

.cozy-footer span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cozy-footer span::before,
.cozy-footer span::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50% 0 50% 50%;
  background: #7aa84d;
  transform: rotate(-28deg);
}

@media (max-width: 1100px) {
  .cozy-login-shell {
    width: min(760px, calc(100% - 24px));
    padding: 18px 0;
  }

  .cozy-board {
    aspect-ratio: auto;
    min-height: auto;
    padding: 72px 18px 24px;
    grid-template-rows: auto;
    gap: 18px;
  }

  .cozy-lang-badge {
    left: 18px;
    top: 32px;
    width: 68px;
    height: 74px;
  }

  .cozy-lang-badge span {
    font-size: 25px;
  }

  .cozy-lang-badge small {
    min-width: 42px;
    font-size: 11px;
  }

  .cozy-hero-cat {
    position: absolute;
    right: 24px;
    top: 46px;
    display: block;
    width: clamp(118px, 19vw, 152px);
    margin: 0;
  }

  .cozy-copy {
    width: 100%;
    padding-top: 148px;
  }

  .cozy-copy h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .cozy-choice-grid {
    grid-template-columns: 1fr;
    margin: 0;
    gap: 14px;
  }

  .cozy-choice {
    min-height: 224px;
  }

  .cozy-choice-art {
    width: 140px;
    height: 100px;
  }

  .cozy-choice strong {
    font-size: 32px;
  }

  .cozy-footer {
    flex-wrap: wrap;
    gap: 10px 22px;
  }
}

@media (max-width: 560px) {
  .cozy-bg-cloud,
  .cozy-bg-leaf {
    display: none;
  }

  .cozy-board {
    border-width: 6px;
    border-radius: 30px;
  }

  .cozy-board::before {
    inset: 14px;
    border-radius: 22px;
  }

  .cozy-board-tab {
    width: 146px;
    height: 66px;
    top: -34px;
    border-width: 6px;
  }

  .cozy-hero-cat {
    right: 10px;
    top: 34px;
    width: 98px;
  }

  .cozy-copy {
    padding-top: 112px;
  }
}

/* Shared image-asset entrance forms: signin, signup, verification and trial. */
.cozy-form-shell {
  width: min(880px, calc(100% - 36px));
}

.cozy-form-board,
.cozy-trial-board {
  min-height: auto;
  aspect-ratio: auto;
  grid-template-rows: auto;
  gap: 18px;
  padding: 78px clamp(24px, 5vw, 54px) 34px;
}

.cozy-trial-board {
  width: min(960px, 100%);
}

.cozy-back-link {
  position: absolute;
  left: 28px;
  top: 28px;
  z-index: 4;
  min-width: 72px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #b88549;
  border-radius: 999px;
  color: #6b4a25;
  background: #fff7de;
  box-shadow: 0 4px 0 rgba(137, 91, 42, 0.18);
  font-weight: 900;
  text-decoration: none;
}

.cozy-form-cat {
  position: absolute;
  right: 28px;
  top: 58px;
  width: clamp(120px, 18vw, 190px);
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(105, 75, 33, 0.14));
}

.cozy-form-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  min-height: 150px;
  padding-right: clamp(110px, 20vw, 210px);
}

.cozy-form-copy > img {
  width: 58px;
  margin-bottom: 8px;
}

.cozy-form-copy p {
  margin: 0 0 4px;
  color: #4f7f36;
  font-size: 22px;
  font-weight: 900;
}

.cozy-form-copy h1 {
  margin: 0 0 10px;
  color: #4a7f39;
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.cozy-form-copy .auth-status,
.cozy-form-copy span {
  display: block;
  color: #624426;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.55;
}

.cozy-auth-form {
  position: relative;
  z-index: 2;
  padding: 18px;
  border: 3px dashed rgba(139, 171, 92, 0.48);
  border-radius: 24px;
  background: rgba(255, 250, 229, 0.9);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.48);
}

.cozy-auth-form input {
  border-color: #d2ad6c;
  background: #fffaf0;
}

.cozy-auth-switch {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #624426;
  font-weight: 900;
  text-align: right;
}

.cozy-auth-switch a,
.cozy-form-board .text-link,
.cozy-trial-board .text-link {
  color: #4f7f36;
  font-weight: 900;
}

.cozy-form-board .primary-action,
.cozy-trial-board .primary-action,
.cozy-form-board .secondary-action {
  border: 2px solid #5f8f3d;
  border-radius: 12px;
  background: linear-gradient(#85b75e, #4e8a35);
  color: white;
  box-shadow: 0 4px 0 #3d6b2d;
  cursor: pointer;
}

.cozy-form-board .secondary-action {
  border-color: #c69347;
  background: #fff3cf;
  color: #7a4b20;
  box-shadow: 0 4px 0 #d0ab6f;
}

.cozy-resend-panel {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px;
  border: 2px dashed rgba(139, 171, 92, 0.42);
  border-radius: 16px;
  background: #fff7de;
}

.cozy-resend-panel img {
  width: 34px;
}

.cozy-resend-panel[hidden] {
  display: none;
}

.cozy-trial-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cozy-trial-grid .cozy-choice {
  min-height: 268px;
}

.cozy-bg-deco {
  position: fixed;
  pointer-events: none;
  user-select: none;
  opacity: 0.38;
  filter: drop-shadow(0 10px 12px rgba(102, 78, 36, 0.1));
}

.deco-tree-left {
  left: 42px;
  bottom: 34px;
  width: clamp(92px, 10vw, 150px);
}

.deco-house-right {
  right: 54px;
  bottom: 52px;
  width: clamp(112px, 11vw, 172px);
}

.deco-cat-left {
  left: 68px;
  bottom: 56px;
  width: clamp(76px, 8vw, 120px);
}

/* Course page image replacements: no CSS-drawn clouds, trees or profile silhouettes. */
.cozy-courses-page {
  background:
    linear-gradient(90deg, rgba(109, 139, 84, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(109, 139, 84, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f4efcf 0%, #f8f0d5 58%, #dbe9b6 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.cozy-course-shell {
  position: relative;
}

.cozy-course-hero .forest-course-cloud,
.cozy-course-hero .forest-course-tree,
.cozy-account-card .forest-profile-arch,
.cozy-account-card .forest-paw-divider {
  display: none !important;
}

.cozy-profile-image {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border: 2px dashed #b8bf75;
  border-radius: 50%;
  background: #fff8de;
}

.cozy-profile-image img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.cozy-paw-row {
  position: relative;
  z-index: 1;
  height: 34px;
  margin: 18px 0;
  display: grid;
  place-items: center;
  border-top: 1px solid #dfc486;
  border-bottom: 1px solid #dfc486;
}

.cozy-paw-row img {
  width: 28px;
  background: #fff3d5;
}

.cozy-course-hero::after {
  background: #ffd990 !important;
}

.cozy-course-hero::after {
  background-image: url("assets/cozy-paw.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 48px auto !important;
}

.cozy-courses-page .forest-admin-link,
.cozy-courses-page .forest-logout-button {
  cursor: pointer;
}

.cozy-paid-summary {
  grid-template-columns: 1fr !important;
  margin-bottom: 10px;
}

.cozy-paid-summary .forest-summary-card {
  min-height: 150px;
}

.cozy-paid-summary .forest-summary-card.paid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 18px 28px;
  align-items: start;
}

.cozy-paid-summary .forest-summary-card.paid h2 {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.cozy-paid-summary .forest-summary-card.paid ul {
  margin-top: 0;
}

.cozy-paid-summary .forest-summary-card.paid p {
  margin: 0;
  align-self: stretch;
  display: grid;
  align-content: center;
}

.cozy-course-shell .forest-section-title {
  margin-top: 14px;
  margin-bottom: 14px;
}

.cozy-course-shell .forest-course-grid {
  margin-top: 0;
}

@media (max-width: 900px) {
  .cozy-form-copy {
    padding-right: 0;
    text-align: center;
  }

  .cozy-form-cat {
    position: relative;
    right: auto;
    top: auto;
    display: block;
    width: 140px;
    margin: 0 auto 10px;
  }

  .cozy-trial-grid {
    grid-template-columns: 1fr;
  }

  .cozy-bg-deco {
    display: none;
  }

  .cozy-paid-summary .forest-summary-card.paid {
    grid-template-columns: 1fr;
  }
}
