/* =====================================================================
   파루씨앤씨 프레임워크 · 표준 프레임워크
   login.css  —  로그인 화면 (좌 Visual 65~70% / 우 Panel 30~35%)
   ===================================================================== */

.login-wrap {
  display: grid;
  grid-template-columns: 68% 32%;
  height: 100vh;
  overflow: hidden;
}

/* ---------------- Left Visual Area ---------------- */
.login-visual {
  position: relative;
  background: var(--grad-brand);
  overflow: hidden;
}
.login-visual .visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* deep navy overlay for text legibility */
.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(15, 46, 95, 0.82) 0%,
    rgba(18, 59, 122, 0.55) 45%,
    rgba(15, 46, 95, 0.25) 100%
  );
}
.login-visual .visual-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
.login-visual .v-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-visual .v-brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-visual .v-brand .mark svg {
  width: 24px;
  height: 24px;
}
.login-visual .v-brand .name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.login-visual .v-copy {
  max-width: 560px;
}
.login-visual .v-copy .tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}
.login-visual .v-copy h1 {
  color: #fff;
  font-size: 42px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.login-visual .v-copy p {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}
.login-visual .v-foot {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* small feature chips */
.v-features {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.v-features .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.v-features .chip .ico {
  width: 16px;
  height: 16px;
  color: var(--c-accent-teal);
}

/* ---------------- Right Login Panel ---------------- */
.login-panel {
  background: var(--c-card);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
}
.login-box {
  width: 100%;
  max-width: 380px;
}
.login-box .lb-logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.login-box .lb-logo .mg {
  color: var(--c-primary-navy);
}
.login-box .lb-logo .link {
  color: var(--c-accent-teal);
}
.login-box .lb-welcome {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 4px;
}
.login-box .lb-sub {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
  margin-bottom: 30px;
}

.login-field {
  position: relative;
  margin-bottom: 16px;
}
.login-field .fico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--c-text-sub);
}
.login-field .form-control {
  height: 48px;
  padding-left: 42px;
  font-size: var(--fs-md);
  border-radius: var(--r-md);
  background: #f8fafc;
}
.login-field .form-control:focus {
  background: #fff;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 22px;
}
.login-options a {
  font-size: var(--fs-sm);
  color: var(--c-text-sub);
}
.login-options a:hover {
  color: var(--c-primary-blue);
}

.login-box .btn-login {
  height: 50px;
  font-size: var(--fs-md);
  border-radius: var(--r-md);
  letter-spacing: 1px;
}

/* quick links */
.quick-links {
  margin-top: 26px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-card);
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
}
.quick-item:hover {
  border-color: var(--c-primary-blue);
  background: var(--c-primary-tint);
  color: var(--c-primary-navy);
  text-decoration: none;
  transform: translateY(-1px);
}
.quick-item .ico {
  width: 22px;
  height: 22px;
  color: var(--c-primary-blue);
}
.quick-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.quick-row .quick-wide {
  flex-direction: row;
  justify-content: center;
  padding: 12px;
  background: var(--c-teal-tint);
  border-color: transparent;
  color: #0d7a6f;
}
.quick-row .quick-wide:hover {
  background: #d5f0eb;
  color: #0b6b61;
  transform: none;
}
.quick-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--c-teal-tint);
  color: #0d7a6f;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.quick-full:hover {
  background: #d5f0eb;
  text-decoration: none;
}

.login-copy {
  margin-top: 30px;
  text-align: center;
  font-size: var(--fs-xs);
  color: #9aa3b2;
}

/* ---------------- Mobile app entry ---------------- */
.mobile-app-download {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 0 15px;
  border: 1px solid #92b5ef;
  border-radius: 6px;
  background: #fff;
  color: var(--c-primary-dark);
  display: grid;
  grid-template-columns: 20px 1fr 18px;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-13);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease,
    transform 0.15s ease;
}
.mobile-app-download:hover {
  border-color: var(--c-primary);
  background: var(--c-primary-tint);
  transform: translateY(-1px);
}
.mobile-app-download:focus-visible,
.mobile-app-dialog-close:focus-visible,
.mobile-app-web-link:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
.mobile-app-download-icon,
.mobile-app-download-arrow {
  width: 20px;
  height: 20px;
}
.mobile-app-download-icon {
  color: var(--c-primary);
}
.mobile-app-download-arrow {
  justify-self: end;
  color: #7b8798;
}

.mobile-app-dialog {
  width: min(440px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: 0 24px 64px rgba(15, 46, 95, 0.24);
}
.mobile-app-dialog::backdrop {
  background: rgba(10, 25, 49, 0.62);
  backdrop-filter: blur(3px);
}
.mobile-app-dialog-card {
  position: relative;
  padding: 34px 36px 32px;
  border-radius: 20px;
  background: #fff;
  text-align: center;
}
.mobile-app-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #687386;
  cursor: pointer;
}
.mobile-app-dialog-close:hover {
  background: #f1f5f9;
  color: var(--c-text);
}
.mobile-app-dialog-close svg {
  width: 100%;
  height: 100%;
}
.mobile-app-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  text-align: left;
}
.mobile-app-dialog-heading h2 {
  margin: 0 0 5px;
  font-size: 22px;
  color: var(--c-text);
}
.mobile-app-dialog-heading p {
  margin: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-13);
  line-height: 1.55;
}
.app-launch-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--c-primary), var(--c-primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(34, 93, 179, 0.2);
}
.app-launch-mark svg {
  width: 25px;
  height: 25px;
}
.mobile-app-qr {
  width: 236px;
  height: 236px;
  margin: 24px auto 12px;
  padding: 8px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: #fff;
}
.mobile-app-qr img {
  display: block;
  width: 100%;
  height: 100%;
}
.mobile-app-qr-help {
  margin: 0;
  color: var(--c-text-sub);
  font-size: var(--fs-12);
}
.mobile-app-web-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--c-primary);
  font-size: var(--fs-13);
  font-weight: 700;
}

.app-launch-card {
  margin: 20px 0 24px;
  padding: 22px;
  border: 1px solid #d7e4f8;
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fbff, #eef5ff);
  text-align: center;
}
.app-launch-card.is-pending,
.app-launch-card[hidden] {
  display: none;
}
.app-launch-card .app-launch-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 13px;
}
.app-launch-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--c-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
}
.app-launch-copy h1 {
  margin: 0;
  color: var(--c-primary-dark);
  font-size: 21px;
}
.app-launch-copy p {
  margin: 8px 0 0;
  color: var(--c-text-sub);
  font-size: var(--fs-13);
  line-height: 1.55;
}
.app-launch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.app-launch-actions .btn {
  height: 42px;
  font-size: var(--fs-13);
}
.mobile-web-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
  color: #8b95a5;
  font-size: var(--fs-12);
}
.mobile-web-divider[hidden] {
  display: none;
}
.mobile-web-divider::before,
.mobile-web-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

@media (max-width: 900px) {
  .login-wrap {
    display: block;
    min-height: 100dvh;
    height: auto;
    overflow: visible;
  }
  .login-visual {
    display: none;
  }
  .login-panel {
    min-height: 100dvh;
    padding: 38px 24px;
  }
  .login-box {
    max-width: 420px;
  }
  .mobile-app-landing .login-panel {
    align-items: flex-start;
  }
  .mobile-app-landing .login-copy {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .login-panel {
    padding: 28px 20px;
  }
  .login-box .lb-logo {
    font-size: 25px;
  }
  .app-launch-card {
    margin-top: 16px;
    padding: 20px 16px;
  }
  .app-launch-actions {
    grid-template-columns: 1fr;
  }
  .mobile-app-dialog-card {
    padding: 30px 20px 24px;
  }
  .mobile-app-dialog-heading {
    padding: 0 20px 0 0;
  }
  .mobile-app-dialog-heading h2 {
    font-size: 19px;
  }
  .mobile-app-qr {
    width: min(226px, 72vw);
    height: min(226px, 72vw);
  }
}
