/* —— Login page —— */
body.login-page {
  min-height: 100vh;
  background: var(--bg);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

/* —— Left showcase panel —— */
.login-showcase {
  position: relative;
  padding: 52px 56px 48px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    linear-gradient(152deg, #fff9f6 0%, #fff3ec 28%, #fef0f5 52%, #eef5ff 100%);
  border-right: 1px solid rgba(244, 81, 30, 0.08);
}

.login-showcase-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  animation: login-float 14s ease-in-out infinite;
}

.login-glow-1 {
  width: 340px;
  height: 340px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 120, 60, 0.45) 0%, transparent 70%);
}

.login-glow-2 {
  width: 280px;
  height: 280px;
  bottom: 80px;
  left: -80px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, transparent 70%);
  animation-delay: -4s;
}

.login-glow-3 {
  width: 200px;
  height: 200px;
  top: 42%;
  right: 18%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.28) 0%, transparent 70%);
  animation-delay: -8s;
}

.login-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(rgba(244, 81, 30, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 85%);
}

@keyframes login-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(12px, -16px) scale(1.04); }
  66% { transform: translate(-10px, 10px) scale(0.96); }
}

/* —— Login hero brand / logo lockup —— */
.login-showcase-head {
  position: relative;
  z-index: 3;
  max-width: 500px;
}

.login-brand-hero {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo — giữ nguyên hình gốc, không bo tròn */
.login-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.login-brand-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 96px;
  object-fit: contain;
  border-radius: 0;
}

.login-brand-logo-mark {
  display: none;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(165deg, #ff6a2a 0%, #f4511e 55%, #c2410c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

.login-brand-logo.is-mark .login-brand-logo-mark {
  display: block;
}

.login-brand-logo.is-mark .login-brand-logo-img,
.login-brand-logo-img[hidden] {
  display: none;
}

/* —— Hero copy block (left panel) —— */
.login-hero-copy {
  position: relative;
}

.login-hero-copy::before {
  display: none;
}

.login-showcase-tagline {
  margin: 0;
}

.login-showcase-tagline-lead {
  display: block;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.35;
  font-weight: 500;
  color: #475569;
  letter-spacing: -0.02em;
}

.login-showcase-tagline-brand {
  display: block;
  margin-top: 8px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #171b2a;
}

.login-showcase-tagline-brand em {
  font-style: normal;
  background: linear-gradient(120deg, #ff6a2a 0%, #f4511e 50%, #ea580c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* —— Feature cards —— */
.login-features {
  position: relative;
  z-index: 3;
  margin-top: auto;
  display: grid;
  gap: 12px;
  max-width: 420px;
  padding-top: 36px;
}

.login-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 17px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.login-feature:hover {
  transform: translateX(4px);
  border-color: rgba(244, 81, 30, 0.15);
  box-shadow: 0 10px 28px rgba(244, 81, 30, 0.08);
}

.login-feature i {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.login-feature i.orange {
  background: linear-gradient(145deg, #fff5ef, #ffe8dc);
  color: var(--orange);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-feature i.blue {
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  color: #2563eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-feature i.teal {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  color: #059669;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-feature strong {
  display: block;
  font-size: 14px;
  color: #171b2a;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.login-feature small {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

/* —— Decorative scene —— */
.login-scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
}

.login-scene .mountain {
  position: absolute;
  bottom: 52px;
  width: 180px;
  height: 90px;
  background: #e4edf0;
  clip-path: polygon(0 100%, 50% 18%, 100% 100%);
}

.login-scene .m1 {
  left: -20px;
  background: linear-gradient(180deg, #dbe7e4, #c8ddd8);
}

.login-scene .m2 {
  left: 70px;
  width: 210px;
  height: 108px;
  background: linear-gradient(180deg, #eef4ed, #ddeae6);
}

.login-scene .lake {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(180deg, #b8dfe1 0%, #d4ecec 40%, #e7f3f2 100%);
}

.login-scene .pagoda {
  position: absolute;
  right: 72px;
  bottom: 48px;
  width: 72px;
  height: 58px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.login-scene .pagoda::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 12px;
  height: 10px;
  background: #e83e20;
  border-radius: 8px 8px 1px 1px;
  box-shadow: 0 15px 0 #f06a3f;
}

.login-scene .pagoda::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 34px;
  border-left: 5px solid #7a5d44;
  border-right: 5px solid #7a5d44;
}

.login-scene .tower {
  position: absolute;
  right: 52px;
  bottom: 48px;
  width: 2px;
  height: 108px;
  background: linear-gradient(180deg, #958b84, #7a726c);
}

.login-scene .tower::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 18px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 14px solid #77736e;
}

.login-scene .flower {
  position: absolute;
  border-radius: 50%;
  background: #f9b4c4;
  box-shadow: 8px 3px 0 #ffc4d0, -5px 7px 0 #f5a2b6;
  animation: login-bloom 6s ease-in-out infinite;
}

.login-scene .f1 {
  right: 28px;
  bottom: 158px;
  width: 10px;
  height: 10px;
}

.login-scene .f2 {
  right: 52px;
  bottom: 128px;
  width: 9px;
  height: 9px;
  animation-delay: -2s;
}

.login-scene .f3 {
  right: 34px;
  bottom: 98px;
  width: 8px;
  height: 8px;
  animation-delay: -4s;
}

@keyframes login-bloom {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* —— Right login panel —— */
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #fff;
  position: relative;
}

.login-panel {
  width: min(420px, 100%);
  position: relative;
  z-index: 1;
}

.login-panel-brand {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.login-main .login-brand-hero {
  width: 100%;
  justify-content: center;
}

.login-card {
  width: 100%;
  position: relative;
}

.login-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(244, 81, 30, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.login-card-top {
  margin-bottom: 28px;
}

.login-card-top h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
  color: #171b2a;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.login-card-top p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 18px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-wrap > i.field-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
  transition: color 0.18s ease;
}

.login-input-wrap:focus-within > i.field-icon {
  color: var(--orange);
}

.login-input-wrap input {
  width: 100%;
  height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0 44px 0 42px;
  font-size: 14px;
  color: #1f2937;
  background: #fafbfc;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-input-wrap input:focus {
  outline: 0;
  border-color: #ffb08f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 81, 30, 0.1);
}

.login-input-wrap input::placeholder {
  color: #9ca3af;
}

.login-toggle-pw {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 16px;
}

.login-toggle-pw:hover {
  background: #f1f5f9;
  color: #334155;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.login-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.login-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
}

.login-forgot {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
}

.login-forgot:hover {
  text-decoration: underline;
}

.login-submit {
  height: 50px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff651f 0%, #f4511e 55%, #ea580c 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(244, 81, 30, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(244, 81, 30, 0.38);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit i {
  font-size: 18px;
  transition: transform 0.18s ease;
}

.login-submit:hover i {
  transform: translateX(3px);
}

.login-demo {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e7eaf0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
}

.login-demo strong {
  display: block;
  color: #374151;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-demo p {
  margin: 0 0 4px;
}

.login-demo p:last-child {
  margin-bottom: 0;
}

.login-demo code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: #f4511e;
  background: #fff1ea;
  padding: 2px 6px;
  border-radius: 6px;
}

.login-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.login-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.login-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.login-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    display: none;
  }

  .login-main {
    min-height: 100vh;
  }

  .login-panel-brand {
    margin-bottom: 28px;
  }
}

@media (max-width: 480px) {
  .login-main {
    padding: 28px 16px;
    min-height: 100vh;
  }

  .login-panel-brand {
    margin-bottom: 24px;
  }

  .login-brand-logo-img {
    max-width: 150px;
    max-height: 80px;
  }

  .login-brand-logo-mark {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-glow,
  .login-scene .flower {
    animation: none;
  }

  .login-feature:hover,
  .login-submit:hover {
    transform: none;
  }
}
