/*
 * 케이토목 로그인 폼 전용 스타일
 * 모든 스타일은 .ktm-login-flat 하위로 한정되어 기존 페이지에 영향을 주지 않습니다.
 */

.ktm-login-flat {
  --ktm-login-flat-color-primary: #159423;
  --ktm-login-flat-color-primary-hover: #117b1d;
  --ktm-login-flat-color-text: #171717;
  --ktm-login-flat-color-muted: #747474;
  --ktm-login-flat-color-border: #d8d8d8;
  --ktm-login-flat-color-focus: rgba(21, 148, 35, 0.16);

  box-sizing: border-box;
  width: 100%;
  padding: 15px 24px 56px;
  color: var(--ktm-login-flat-color-text);
  font-family:
    Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
}

.ktm-login-flat *,
.ktm-login-flat *::before,
.ktm-login-flat *::after {
  box-sizing: border-box;
}

.ktm-login-flat__inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.ktm-login-flat__header {
  margin: 0 0 25px;
  text-align: center;
}

.ktm-login-flat__title {
  margin: 0;
  color: var(--ktm-login-flat-color-text);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.ktm-login-flat__subtitle {
  margin: 8px 0 0;
  color: #4e4e4e;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.02em;
}

.ktm-login-flat__accent {
  display: block;
  width: 32px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: var(--ktm-login-flat-color-primary);
}

.ktm-login-flat__form {
  margin: 0;
}

.ktm-login-flat__field + .ktm-login-flat__field {
  margin-top: 17px;
}

.ktm-login-flat__label {
  display: block;
  margin: 0 0 8px;
  color: #262626;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.ktm-login-flat__input {
  display: block;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--ktm-login-flat-color-border);
  border-radius: 5px !important;
  outline: 0;
  background: #fff;
  color: var(--ktm-login-flat-color-text);
  font: inherit;
  font-size: 14px;
  line-height: normal;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
  appearance: none;
}

.ktm-login-flat__input::placeholder {
  color: #999;
  opacity: 1;
}

.ktm-login-flat__input:hover {
  border-color: #b9b9b9;
}

.ktm-login-flat__input:focus {
  border-color: var(--ktm-login-flat-color-primary);
  box-shadow: 0 0 0 3px var(--ktm-login-flat-color-focus);
}

.ktm-login-flat__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
}

.ktm-login-flat__remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
  user-select: none;
}

.ktm-login-flat__checkbox {
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid #bcbcbc;
  border-radius: 2px;
  accent-color: var(--ktm-login-flat-color-primary);
  cursor: pointer;
}

.ktm-login-flat__text-link,
.ktm-login-flat__signup-link {
  color: #555;
  text-decoration: none;
}

.ktm-login-flat__text-link {
  font-size: 13px;
  line-height: 1.4;
}

.ktm-login-flat__text-link:hover,
.ktm-login-flat__text-link:focus-visible,
.ktm-login-flat__signup-link:hover,
.ktm-login-flat__signup-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ktm-login-flat__submit {
  display: block;
  width: 100%;
  height: 52px;
  margin: 23px 0 0;
  padding: 0 20px;
  border: 1px solid var(--ktm-login-flat-color-primary);
  border-radius: 6px;
  background: var(--ktm-login-flat-color-primary);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
  appearance: none;
}

.ktm-login-flat__submit:hover {
  border-color: var(--ktm-login-flat-color-primary-hover);
  background: var(--ktm-login-flat-color-primary-hover);
}

.ktm-login-flat__submit:focus-visible,
.ktm-login-flat__social-button:focus-visible,
.ktm-login-flat__text-link:focus-visible,
.ktm-login-flat__signup-link:focus-visible {
  outline: 3px solid var(--ktm-login-flat-color-focus);
  outline-offset: 2px;
}

.ktm-login-flat__social {
  margin-top: 27px;
}

.ktm-login-flat__divider {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #555;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.ktm-login-flat__divider::before,
.ktm-login-flat__divider::after {
  flex: 1 1 auto;
  height: 1px;
  background: #dedede;
  content: "";
}

.ktm-login-flat__social-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ktm-login-flat__social-button {
  display: inline-flex;
  min-width: 0;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid #d7d7d7;
  border-radius: 5px;
  background: #fff;
  color: #202020;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3em;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.ktm-login-flat__social-button:hover {
  border-color: #b8b8b8;
  background: #fafafa;
}

.ktm-login-flat__social-icon {
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.ktm-login-flat__social-button--google .ktm-login-flat__social-icon {
  color: #4285f4;
  font-family: Arial, sans-serif;
}

.ktm-login-flat__social-button--naver .ktm-login-flat__social-icon {
  color: #03c75a;
  font-family: Arial, sans-serif;
}

.ktm-login-flat__social-button--kakao .ktm-login-flat__social-icon {
  color: #ffe500;
}

.ktm-login-flat__social-button--kakao .ktm-login-flat__social-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.ktm-login-flat__footer {
  margin-top: 33px;
  text-align: center;
}

.ktm-login-flat__signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0;
  color: #777;
  font-size: 13px;
  line-height: 1.5;
}

.ktm-login-flat__signup-link {
  color: var(--ktm-login-flat-color-primary);
  font-weight: 700;
}

.ktm-login-flat__notice {
  margin: 10px 0 0;
  color: #898989;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

@media (max-width: 520px) {
  .ktm-login-flat {
    padding: 30px 18px 42px;
  }

  .ktm-login-flat__title {
    font-size: 30px;
  }

  .ktm-login-flat__social-list {
    grid-template-columns: 1fr;
  }

  .ktm-login-flat__social-button {
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ktm-login-flat__input,
  .ktm-login-flat__submit,
  .ktm-login-flat__social-button {
    transition: none;
  }
}

.recent-login-sns { position:absolute; margin-bottom: -43px; width:70px; background: #159423; border-radius: 30px; font-size: 0.7em; text-align: center; color:#fff; }
