/* ========================================
   NOWON VOLUNTEER ASSOCIATION - LOGIN
   독립 스타일: 공통 헤더 및 푸터와 분리
======================================== */

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

.login-page {
  --login-green: #287348;
  --login-green-dark: #205c3a;
  --login-green-light: #edf7ee;
  --login-text: #26392c;
  --login-muted: #78847b;
  --login-border: #e2e9e3;

  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: var(--login-text);
}

.login-page a {
  color: inherit;
  text-decoration: none;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 100vh;
}

/* ========================================
   왼쪽 소개 영역
======================================== */

.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 100vh;
  padding: 42px clamp(28px, 5vw, 76px);
  overflow: hidden;

  color: #ffffff;
  /* background:
    radial-gradient(
      circle at 85% 80%,
      rgba(153, 209, 157, 0.2),
      transparent 32%
    ),
    linear-gradient(145deg, #347e50 0%, #1f5b39 100%); */
  background-image: url("/nowonvolunteer/images/thumbnail01.png");
  background-position: inherit;
  background-size: cover;
  background-repeat: no-repeat;

  .hero-overlay {
    position: absolute;
    inset: 0;
    /* --cream(#fffdf7)과 --mint(#dff5e8)의 은은한 반투명 그라데이션 적용 */
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    pointer-events: none;
  }
}

.login-brand {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 13px;
}

.login-brand img {
  width: 53px;
  height: 53px;
  padding: 4px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}

.login-brand span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-brand strong {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.7px;
}

.login-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  letter-spacing: 0.8px;
}

.login-visual-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 70px auto;
}

.visual-eyebrow {
  display: inline-block;
  margin-bottom: 23px;
  color: #ccebd0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.login-visual-content h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4vw, 51px);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -2.3px;
  word-break: keep-all;
}

.login-visual-content > p {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 14px;
  line-height: 2;
  word-break: keep-all;
}

.visual-highlights {
  display: grid;
  gap: 22px;
  margin-top: 55px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.highlight-icon {
  display: grid;
  flex: 0 0 47px;
  width: 47px;
  height: 47px;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);

  color: #e5f6e7;
  font-size: 22px;
}

.highlight-item div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.highlight-item strong {
  font-size: 14px;
  font-weight: 700;
}

.highlight-item small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.visual-bottom {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  letter-spacing: 0.3px;
}

.visual-decoration {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.decoration-one {
  right: -170px;
  bottom: 70px;
  width: 460px;
  height: 460px;
}

.decoration-two {
  right: -95px;
  bottom: 145px;
  width: 310px;
  height: 310px;
}

/* ========================================
   오른쪽 로그인 영역
======================================== */

.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 0;
  padding: 55px clamp(24px, 5vw, 80px) 25px;
  background: #ffffff;
}

.login-card {
  width: 100%;
  max-width: 420px;
  margin: auto 0;
}

.mobile-brand {
  display: none;
}

.login-heading {
  margin-bottom: 35px;
}

.heading-label {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--login-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.login-heading h2 {
  margin: 0;
  color: #243b2b;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.login-heading p {
  margin: 12px 0 0;
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}

/* ========================================
   입력 폼
======================================== */

.login-form {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field > label {
  color: #34483a;
  font-size: 14px;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 56px;
  padding: 0 16px;

  border: 1px solid var(--login-border);
  border-radius: 10px;
  background: #ffffff;

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

.input-wrap:focus-within {
  border-color: #4b9364;
  background: #fcfffc;
  box-shadow: 0 0 0 3px rgba(40, 115, 72, 0.09);
}

.input-icon {
  flex: 0 0 auto;
  color: #7c9b83;
  font-size: 20px;
}

.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;

  border: 0;
  outline: none;
  background: transparent;

  color: #283b2e;
  font-family: inherit;
  font-size: 14px;
}

.input-wrap input::placeholder {
  color: #a3ada5;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  min-height: 56px;
  margin-top: 5px;
  padding: 14px 20px;

  border: 0;
  border-radius: 10px;
  background: var(--login-green);

  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;

  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.login-submit span {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.login-submit:hover {
  background: var(--login-green-dark);
  box-shadow: 0 7px 17px rgba(40, 115, 72, 0.16);
}

.login-submit:hover span {
  transform: translateX(4px);
}

.login-submit:focus-visible,
.login-links a:focus-visible,
.back-home:focus-visible {
  outline: 3px solid #9acda6;
  outline-offset: 4px;
}

/* ========================================
   안내 및 하단 링크
======================================== */

.login-alert {
  margin: 0 0 20px;
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.7;
}

.login-alert-error {
  border: 1px solid #f1d1cd;
  background: #fff5f3;
  color: #a54136;
}

.login-alert-success {
  border: 1px solid #cde8d2;
  background: #f0faf2;
  color: #287348;
}

.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 13px;

  margin-top: 24px;
}

.login-links a {
  color: #707d73;
  font-size: 12px;
  transition: color 0.2s ease;
}

.login-links a:hover {
  color: var(--login-green);
}

.link-divider {
  width: 1px;
  height: 12px;
  background: #dfe5df;
}

.login-help {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  margin-top: 36px;
  padding: 17px;

  border: 1px solid #e8efe8;
  border-radius: 10px;
  background: #f8fbf8;
}

.help-icon {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;

  border-radius: 50%;
  background: #e2f1e5;
  color: #287348;
  font-size: 12px;
  font-weight: 800;
}

.login-help p {
  margin: 0;
  color: #718075;
  font-size: 12px;
  line-height: 1.8;
  word-break: keep-all;
}

.back-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  margin-top: 26px;
  color: #617365;
  font-size: 13px;
  font-weight: 600;
}

.back-home:hover {
  color: var(--login-green);
}

.login-copyright {
  width: 100%;
  margin: 40px 0 0;
  color: #a1aaa2;
  font-size: 10px;
  text-align: center;
}

/* ========================================
   태블릿
======================================== */

@media (max-width: 1000px) {
  .login-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .login-visual {
    padding: 32px 30px;
  }

  .login-brand strong {
    font-size: 16px;
  }

  .login-brand small {
    font-size: 8px;
  }

  .login-visual-content h1 {
    font-size: 36px;
  }

  .login-visual-content > p {
    font-size: 13px;
  }

  .login-content {
    padding: 40px 30px 22px;
  }
}

/* ========================================
   모바일
======================================== */

@media (max-width: 700px) {
  .login-layout {
    display: block;
    min-height: 100vh;
    background: #ffffff;
  }

  .login-visual {
    display: none;
  }

  .login-content {
    min-height: 100vh;
    padding: 35px 24px 20px;
  }

  .login-card {
    max-width: 430px;
    margin: auto 0;
  }

  .mobile-brand {
    display: flex;
    margin-bottom: 42px;
    align-items: center;
  }

  .mobile-brand a {
    color: var(--login-green);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.7px;
  }
  .mobile-brand img {
    width: 54px;
    height: 54px;
  }

  .login-heading {
    margin-bottom: 30px;
  }

  .login-heading h2 {
    font-size: 31px;
  }

  .login-help {
    margin-top: 30px;
  }

  .login-copyright {
    margin-top: 30px;
  }
}

/* 작은 화면 */
@media (max-width: 380px) {
  .login-content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .login-links {
    gap: 9px;
  }

  .login-links a {
    font-size: 11px;
  }
}

/* 모션 최소화 설정 */
@media (prefers-reduced-motion: reduce) {
  .login-page *,
  .login-page *::before,
  .login-page *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
