/* =========================================================
   표준 로그인 화면
   - Full screen ERP login
   - 교회별 DB 정보 연동
   - 컴팩트 보안 로그인 카드
   ========================================================= */

:root {
  --login-navy-950: #06152f;
  --login-navy-900: #09234b;
  --login-navy-850: #0b2d61;
  --login-blue-700: #164fa8;
  --login-blue-600: #2368d7;
  --login-blue-500: #3f83ee;

  --login-white: #ffffff;
  --login-text: #11233f;
  --login-muted: #687895;
  --login-line: #dce5f1;
  --login-soft: #edf4ff;

  --login-radius-card: 22px;
  --login-radius-soft: 14px;

  --login-shadow:
    0 26px 70px rgba(3, 17, 42, 0.28),
    0 8px 24px rgba(3, 17, 42, 0.12);
}


/* =========================================================
   1. render_base 영향 제거
   ========================================================= */

.main-login {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.standard-login-page,
.standard-login-page * {
  box-sizing: border-box;
}

.standard-login-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  color: var(--login-white);
  font-family:
    Pretendard,
    "Noto Sans KR",
    "Apple SD Gothic Neo",
    Arial,
    sans-serif;

  background:
    radial-gradient(
      circle at 18% 20%,
      rgba(78, 139, 245, 0.26) 0,
      rgba(78, 139, 245, 0.04) 31%,
      transparent 52%
    ),
    radial-gradient(
      circle at 84% 77%,
      rgba(61, 125, 231, 0.20) 0,
      rgba(61, 125, 231, 0.03) 35%,
      transparent 56%
    ),
    linear-gradient(
      122deg,
      var(--login-navy-950) 0%,
      var(--login-navy-900) 42%,
      var(--login-navy-850) 72%,
      #0e3978 100%
    );
}


/* =========================================================
   2. 제품형 배경 이미지
   - 배경: 교회·재정 그래픽 전용 이미지
   - UI: 실제 HTML 요소로 별도 표시
   ========================================================= */

.standard-login-page::before,
.standard-login-page::after {
  display: none;
}

.standard-login-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-scene-art {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(5,18,46,.42) 0%,
            rgba(5,18,46,.20) 38%,
            rgba(5,18,46,.08) 70%,
            rgba(5,18,46,.10) 100%
        ),
        url("/offering/static/img/login-product-bg.png")
        center center /cover no-repeat;

    opacity: 1;
}

.login-orbit,
.login-dot-accent {
  display: none;
}

.standard-login-hero {
  position: relative;
  z-index: 2;
}

.login-brand,
.login-hero-content {
  position: relative;
  z-index: 3;
}


/* =========================================================
   3. 전체 레이아웃
   ========================================================= */

.standard-login-shell {
  position: relative;
  z-index: 3;

  width: min(1480px, calc(100% - 72px));
  min-height: 100vh;
  margin: 0 auto;

  display: grid;
  grid-template-columns: minmax(0, 1.92fr) minmax(360px, 0.88fr);
  gap: 72px;
  align-items: center;

  padding: 42px 0;
}


/* =========================================================
   4. 좌측 히어로 영역
   ========================================================= */

.standard-login-hero {
  min-width: 0;
  padding: 0px 0 10px;
  transform:translateY(-24px);
}

.login-brand {

    display:inline-flex;
    align-items:center;
    gap:14px;

    margin-bottom:clamp(66px,8vh,105px);

    transform:translateX(-20px);
}


.login-brand-logo-wrap {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 7px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(8px);
}

.login-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.login-brand-copy strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: -0.45px;
}

.login-brand-copy span{
    margin-top:5px;
    font-size:9px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:1.65px;
    color:rgba(225,236,255,.68);
    text-transform:uppercase;
}

.login-hero-content {
  width: min(920px, 100%);
}

.login-eyebrow {
  margin: 0 0 18px;
  color: #84b5ff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 4px;
}

.login-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 4vw, 70px);
  line-height: 1.09;
  font-weight: 900;
  letter-spacing: -3px;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.22);
}

.login-hero-lead {
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(21px, 1.65vw, 27px);
  line-height: 1.45;
  font-weight: 760;
  letter-spacing: -0.8px;
}

.login-hero-description {
  width: min(690px, 100%);
  margin: 14px 0 0;
  color: rgba(219, 233, 255, 0.76);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  word-break: keep-all;
}


/* =========================================================
   5. 제품형 기능 카드
   ========================================================= */

.login-feature-grid {
  width: min(900px, 100%);
  margin-top: 34px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.login-feature-card {
  min-width: 0;
  min-height: 226px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;

  padding: 20px 18px 18px;

  border: 1px solid rgba(92, 161, 246, 0.30);
  border-radius: 15px;

  background:
    linear-gradient(
      155deg,
      rgba(33, 85, 151, 0.48),
      rgba(5, 34, 76, 0.45)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 11, 34, 0.16);

  backdrop-filter: blur(11px);
}

.login-feature-icon {
    width:58px;
    height:58px;
    flex:0 0 58px;

    margin:0 auto 4px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:1px solid rgba(175,218,255,.30);
    border-radius:50%;

    color:#245fcb;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #eef6ff 100%
        );

    box-shadow:
        0 12px 26px rgba(0,20,60,.24),
        inset 0 1px 0 rgba(255,255,255,.98);

    position:relative;
    overflow:hidden;
}

.login-feature-icon::after{
    content:"";
    position:absolute;
    top:6px;
    left:10px;
    width:26px;
    height:12px;
    border-radius:50%;
    background:rgba(255,255,255,.32);
    filter:blur(4px);
}

.login-feature-icon svg{
    width:31px;
    height:31px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    vector-effect:non-scaling-stroke;

}

.login-feature-card > .login-feature-body {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  text-align: center;
}

.login-feature-body strong {
  margin-top: 1px;

  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: -0.45px;
  white-space: normal;
}

.login-feature-body p {
  min-height: 42px;
  margin: 8px 0 11px;

  color: rgba(220, 235, 255, 0.78);
  font-size: 11.5px;
  line-height: 1.65;
  font-weight: 520;
  word-break: keep-all;
}

.login-feature-list {
  display: grid;
  gap: 8px;

  margin: 2px 0 0;
  padding: 0 4px 0 14px;

  list-style: none;
  text-align: left;
}

.login-feature-list li {
  position: relative;
  padding-left: 20px;

  color: rgba(226, 239, 255, 0.82);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.login-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 1px;

  color: #63a9ff;
  font-size: 12px;
  font-weight: 900;
}


/* =========================================================
   6. 신뢰 키워드
   ========================================================= */

.login-trust-row {
  margin-top: 25px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(213, 229, 253, 0.66);
  font-size: 12px;
  font-weight: 650;
}

.login-trust-row span {
  position: relative;
  padding-left: 16px;
}

.login-trust-row span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  color: #72aaff;
  font-size: 11px;
  font-weight: 900;
}


/* =========================================================
   7. 우측 로그인 패널
   ========================================================= */

.standard-login-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.login-security-card {
  width: 100%;
  max-width: 420px;
  margin-left: auto;

  padding: 35px 34px 30px;

  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--login-radius-card);
  background: rgba(255, 255, 255, 0.965);

  box-shadow: var(--login-shadow);
  backdrop-filter: blur(20px);

  color: var(--login-text);

  animation: login-card-enter 0.36s ease-out both;
}

@keyframes login-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-security-mark {
  width: 44px;
  height: 44px;
  margin: 0 auto 13px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #d9e7fb;
  border-radius: 13px;
  color: var(--login-blue-600);
  background: var(--login-soft);
}

.login-security-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-security-kicker {
  margin: 0 0 7px;
  text-align: center;
  color: var(--login-blue-600);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: 2.6px;
}

.login-form-title {
  margin: 0;
  text-align: center;
  color: #10213e;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.login-help {
  margin: 9px 0 22px;
  text-align: center;
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}


/* =========================================================
   8. 로그인 상태 메시지
   ========================================================= */

.login-alert {
  width: 100%;
  margin: -5px 0 15px;
  padding: 10px 12px;

  border: 1px solid transparent;
  border-radius: 10px;

  text-align: left;
  font-size: 12px;
  line-height: 1.45;
}

.login-alert strong,
.login-alert span {
  display: block;
}

.login-alert strong {
  font-weight: 800;
}

.login-alert span {
  margin-top: 2px;
  opacity: 0.86;
}

.login-alert-warning {
  color: #81500a;
  border-color: #f3d89b;
  background: #fff8e9;
}

.login-alert-danger {
  color: #a52b35;
  border-color: #f2c2c7;
  background: #fff1f2;
}


/* =========================================================
   9. 로그인 폼
   ========================================================= */

.login-form {
  width: 100%;
}

.login-field-label {
  display: block;
  margin: 0 0 7px;
  color: #354764;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 750;
}

.login-pin {
  display: block;
  width: 100%;
  height: 50px;

  padding: 0 16px;

  border: 1px solid #c9d5e5;
  border-radius: 11px;
  outline: none;

  color: #11233f;
  background: #fbfdff;

  font-size: 18px;
  line-height: 50px;
  font-weight: 800;
  letter-spacing: 18px;
  text-align: center;

  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.login-pin::placeholder {
  color: #aebbd0;
  font-size: 15px;
  letter-spacing: 7px;
}

.login-pin:hover {
  border-color: #9fb3cf;
}

.login-pin:focus {
  border-color: var(--login-blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(63, 131, 238, 0.12);
}

.login-button {
  width: 100%;
  height: 48px;
  margin-top: 13px;
  padding: 0 17px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 0;
  border-radius: 11px;

  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--login-blue-600),
      #174fae
    );

  box-shadow:
    0 9px 22px rgba(35, 104, 215, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.19);

  font-size: 14px;
  line-height: 1;
  font-weight: 850;
  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.035);
  box-shadow:
    0 12px 28px rgba(35, 104, 215, 0.31),
    inset 0 1px 0 rgba(255, 255, 255, 0.19);
}

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

.login-security-note {
  margin-top: 18px;
  padding-top: 16px;

  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;

  border-top: 1px solid #e5ebf3;

  color: #7c8aa0;
  font-size: 10px;
  line-height: 1.55;
  font-weight: 550;
  text-align: left;
}

.login-security-note-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 0;

  border-radius: 50%;
  color: var(--login-blue-600);
  background: #eaf2ff;

  font-size: 9px;
  font-weight: 900;
}


/* =========================================================
   10. 우측 하단 정보
   ========================================================= */

.login-footer {
  width: 100%;
  max-width: 420px;
  margin: 17px 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 15px;

  color: rgba(217, 230, 250, 0.57);
  font-size: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.login-footer > * {
  position: relative;
}

.login-footer > *:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(217, 230, 250, 0.42);
}

/* ==========================================================
   Footer Homepage Button
========================================================== */

.login-footer-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 16px;
    border-radius:999px;
    border:1px solid rgba(155,205,255,.35);
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.10),
            rgba(255,255,255,.05)
        );
    color:#ffffff;
    font-size:12px;
    font-weight:700;
    text-decoration:none;
    backdrop-filter:blur(10px);
    box-shadow:
        0 2px 10px rgba(0,35,90,.20),
        inset 0 1px 0 rgba(255,255,255,.18);

    transition:all .18s ease;
}

.login-footer-link:hover{
    background:
        linear-gradient(
            180deg,
            rgba(82,150,255,.28),
            rgba(48,108,220,.20)
        );
    border-color:#83c4ff;
    color:#fff;
    transform:translateY(-1px);
    box-shadow:
        0 0 18px rgba(98,170,255,.22);
}

.footer-home-icon{
    font-size:15px;
    color:#9fd2ff;
}

.footer-home-arrow{
    font-size:12px;
    color:#a8d6ff;
}

/* =========================================================
   11. 노트북 화면
   ========================================================= */

@media (max-width: 1240px) {
  .standard-login-shell {
    width: min(1180px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1.55fr) minmax(350px, 0.85fr);
    gap: 44px;
  }

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

  .login-feature-card {
    padding: 16px 13px;
  }

  .login-feature-icon {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .login-feature-card strong {
    font-size: 13px;
  }

  .login-security-card {
    max-width: 400px;
  }

  .login-footer {
    max-width: 400px;
  }
}

/* ===========================================================
   Footer Feature
=========================================================== */

.login-footer-features{
    display:flex;
    align-items:stretch;
    justify-content:space-between;
    margin-top:42px;
    padding-top:28px;
    border-top:1px solid rgba(255,255,255,.14);
}

.login-footer-item{
    flex:1;
    display:flex;
    align-items:flex-start;
    gap:16px;
}

.login-footer-divider{
    width:1px;
    margin:0 28px;
    background:rgba(255,255,255,.10);
}

.login-footer-icon{
    width:42px;
    height:42px;
    flex:none;
    color:#dbe7ff;
}

.login-footer-icon svg{
    width:42px;
    height:42px;
}

.login-footer-text h4{
    margin:0;
    color:#ffffff;
    font-size:16px;
    font-weight:700;
    letter-spacing:.2px;
}

.login-footer-text p{
    margin-top:8px;
    color:rgba(255,255,255,.72);
    font-size:13px;
    line-height:1.6;
}

/* ==========================================================
   Login Footer
========================================================== */

.login-footer{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:18px;
    margin-top:22px;
    color:rgba(255,255,255,.72);
    font-size:13px;
}

.login-footer span{
    position:relative;
}

.login-footer span:not(:last-child)::after{
    content:"";
    position:absolute;
    right:-10px;
    top:3px;
    width:1px;
    height:12px;
    background:rgba(255,255,255,.18);
}

.login-copyright{
    margin-top:10px;
    text-align:center;
    color:rgba(255,255,255,.52);
    font-size:12px;
    letter-spacing:.2px;
}

/* ==========================================================
   PIN Input
========================================================== */

.login-pin{
    height:54px;
    border-radius:12px;
    border:2px solid rgba(60,120,255,.25);
    background:#fff;
    font-size:28px;
    font-weight:700;
    letter-spacing:18px;
    text-align:center;
    color:#234e9b;
    transition:.18s;
}

.login-pin:focus{
    outline:none;
    border-color:#2f67da;
    box-shadow:
        0 0 0 4px rgba(60,120,255,.15);
}



/* ==========================================================
   하단 보안·표준 기능 3열
========================================================== */

.login-trust-row {
    margin-top: 28px;
}

.login-footer-features {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;

    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.login-footer-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    gap: 10px;

    padding: 0 14px;
}

.login-footer-item + .login-footer-item {
    border-left: 1px solid rgba(255, 255, 255, .12);
}

/* 기존 별도 divider는 숨김 */
.login-footer-divider {
    display: none;
}

.login-footer-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: flex-start;
    justify-content: center;

    color: rgba(225, 238, 255, .96);
}

.login-footer-icon svg {
    width: 32px;
    height: 32px;
}

.login-footer-text {
    min-width: 0;
}

.login-footer-text h4 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.login-footer-text p {
    margin: 0;
    color: rgba(225, 236, 250, .78);
    font-size: 11.5px;
    line-height: 1.55;
    font-weight: 500;
    word-break: keep-all;
}

/* =========================================================
   Hero 슬로건 : 수직 바 + 2줄 문구
   ========================================================= */

.login-hero-slogan {
    width: min(650px, 100%);
    margin-top: 24px;

    display: grid;
    grid-template-columns: 5px minmax(0, 1fr);
    column-gap: 16px;
    align-items: stretch;
}

.login-hero-slogan-bar {
    display: block;
    width: 6px;
    min-height: 68px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            #72b5ff 0%,
            #347df0 52%,
            #65a9ff 100%
        );

    box-shadow:
        0 0 14px rgba(72, 145, 255, 0.42);
}

.login-hero-lead {
    min-width: 0;
    margin: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;

    color: rgba(255, 255, 255, 0.96);

    font-size: clamp(19px, 1.35vw, 23px);
    line-height: 1.42;
    font-weight: 760;
    letter-spacing: -0.45px;

    word-break: keep-all;
}

.login-hero-lead span {
    display: block;
}

.login-hero-description {
    width: min(690px, 100%);
    margin: 16px 0 0;

    color: rgba(219, 233, 255, 0.76);
    font-size: 16px;
    line-height: 1.8;
    font-weight: 500;
    word-break: keep-all;
}

.login-version{
    padding:4px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.12);
    font-size:11px;
    font-weight:700;

}

