body,
body *,
input,
button {
  font-family: 'Tenor Sans', sans-serif;
}

:root {
  --cream: #F5F1EB;
  --black: #2B2B2B;
  --sienna: #A64B2A;
  --taupe: #8B7F74;
}

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

body.login-page {
  background: var(--cream);
  color: var(--black);
  height: 100vh;
  overflow: hidden;
}

.split-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* logos: tiny bit smaller */
.logo-desktop {
  width: 122px;
  height: auto;
  display: block;
  z-index: 2;
}

.logo-mobile {
  width: 114px;
  height: auto;
  display: none;
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--black);
}

.split-left {
  flex: 0 0 50%;
  background: #252525;
  color: #fff;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Left panel quarter glows (desktop) */
.glow {
  position: absolute;
  width: 760px;   /* bigger */
  height: 760px;  /* bigger */
  pointer-events: none;
  z-index: 0;
}

.orange-glow {
  top: -380px;   /* half of 760 */
  left: -380px;
  background: radial-gradient(circle, rgba(166, 75, 42, 0.34) 0%, rgba(166, 75, 42, 0) 72%);
}

.grey-glow {
  right: -380px; /* half of 760 */
  bottom: -380px;
  background: radial-gradient(circle, rgba(196, 196, 196, 0.22) 0%, rgba(196, 196, 196, 0) 72%);
}

.left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

.left-content h1 {
  font-size: 56px;
  font-weight: normal;
  line-height: 1.15;
  margin-bottom: 24px;
}

.left-content p {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 440px;
}

.left-footer {
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.4;
  z-index: 1;
}

.split-right {
  flex: 0 0 50%;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 60px;
}

.right-content-wrapper {
  max-width: 400px;
  width: 100%;
}

.right-content h2 {
  font-size: 38px;
  font-weight: normal;
  margin-bottom: 12px;
}

.subtitle {
  color: var(--taupe);
  line-height: 1.6;
  margin-bottom: 40px;
  font-size: 16px;
}

.input-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--taupe);
  display: block;
  margin-bottom: 10px;
  margin-top: 20px;
}

.input-label:first-child {
  margin-top: 0;
}

.input-group {
  display: flex;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}

.input-group:focus-within {
  border-color: var(--sienna);
}

.input-group input {
  flex: 1;
  border: none;
  padding: 16px;
  font-size: 16px;
  outline: none;
  background: transparent;
  letter-spacing: 0.05em;
}

.login-btn {
  width: 100%;
  background: #d2a695;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 18px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 24px;
}

.login-btn:hover {
  background: var(--sienna);
}

.login-btn:disabled {
  background: var(--taupe);
  cursor: default;
}

.signin-link {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--taupe);
  text-decoration: none;
  transition: color 0.2s;
}

.signin-link:hover {
  color: var(--sienna);
}

.terms-text {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  margin-top: 48px;
  line-height: 1.6;
}

/* Install Guide Popup */
.install-modal {
  position: fixed;
  inset: 0;
  display: none;
  background:
    radial-gradient(circle at 50% 16%, rgba(166, 75, 42, 0.18), transparent 40%),
    radial-gradient(circle at 50% 84%, rgba(180, 180, 180, 0.16), transparent 42%),
    linear-gradient(180deg, #2b2b2b 0%, #252525 100%);
  color: #f6f3ef;
  z-index: 1200;
  padding: 34px 22px;
  overflow: hidden;
}

.install-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: installFadeIn 0.22s ease;
}

.install-close {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 241, 235, 0.1);
  border-radius: 50%;
  background: rgba(245, 241, 235, 0.055);
  color: rgba(245, 241, 235, 0.84);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(10px);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.install-close:hover {
  background: rgba(245, 241, 235, 0.1);
  color: #fff;
  transform: scale(1.03);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

.install-guide {
  width: min(560px, 100%);
  min-height: min(720px, 86vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.install-brand {
  text-align: center;
  margin-bottom: 64px;
}

.install-logo {
  width: 102px;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  opacity: 0.96;
}

.install-brand h3 {
  font-size: 30px;
  font-weight: normal;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  color: #f8f6f2;
}

.install-brand p {
  max-width: 370px;
  color: rgba(246, 243, 239, 0.72);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 auto;
}

.install-steps {
  width: min(430px, 100%);
  display: grid;
  gap: 24px;
}

.install-step {
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: center;
  gap: 18px;
}

.install-step-text {
  text-align: right;
}

.install-step-title {
  display: block;
  color: #f8f6f2;
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 7px;
}

.install-step-note {
  display: block;
  color: rgba(246, 243, 239, 0.55);
  font-size: 14px;
  line-height: 1.55;
}

.install-step-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(245, 241, 235, 0.075);
  color: var(--sienna);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 1px rgba(245, 241, 235, 0.055),
    0 10px 28px rgba(0, 0, 0, 0.18);
}

.install-step-icon.brand {
  background: var(--sienna);
  color: #f8f6f2;
}

.install-step-icon .material-symbols-outlined {
  font-size: 29px;
}

@keyframes installFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  body.login-page {
    overflow: auto;
  }

  .split-left {
    display: none;
  }

  .split-right {
    flex: 0 0 100%;
    min-height: 100vh;
    padding: 40px 20px;
  }

  .logo-mobile {
    display: block;
  }

  .right-content-wrapper {
    margin-top: 72px;
  }

  .install-modal {
    padding: 28px 22px;
  }

  .install-guide {
    min-height: 84vh;
    justify-content: flex-start;
    padding-top: 116px;
  }

  .install-brand {
    margin-bottom: 58px;
  }

  .install-logo {
    width: 96px;
  }

  .install-brand h3 {
    font-size: 28px;
  }

  .install-brand p {
    font-size: 15px;
  }

  .install-steps {
    width: min(410px, 100%);
    gap: 22px;
  }
}

@media (max-width: 480px) {
  .right-content h2 {
    font-size: 32px;
  }

  .subtitle {
    font-size: 15px;
    margin-bottom: 32px;
  }

  .install-guide {
    padding-top: 96px;
  }

  .install-brand {
    margin-bottom: 50px;
  }

  .install-step {
    grid-template-columns: 1fr 54px;
    gap: 16px;
  }

  .install-step-icon {
    width: 54px;
    height: 54px;
  }

  .install-step-title {
    font-size: 17px;
  }

  .install-step-note {
    font-size: 13px;
  }
}
