:root {
  --login-bg: #f3f6fa;
  --login-card: #ffffff;
  --login-text: #111827;
  --login-muted: #6b7280;
  --login-line: rgba(15, 23, 42, 0.12);
  --login-blue: #0057ff;
  --login-blue2: #0b63ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background: var(--login-bg);
  color: var(--login-text);
  font-family:
    "Pretendard",
    "Noto Sans KR",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.login-page {
  min-height: calc(100vh - 112px);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 87, 255, 0.05), transparent 30%),
    linear-gradient(180deg, #f6f9fc 0%, #f2f5f9 100%);
}

.login-section {
  min-height: calc(100vh - 112px);
  padding: 74px 20px 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card-wrap {
  width: min(460px, 100%);
}

.login-card {
  width: 100%;
  padding: 58px 40px 56px;
  border-radius: 22px;
  background: var(--login-card);
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(15, 23, 42, 0.04);
  animation: loginUp 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-logo {
  width: 140px;
  margin: 0 auto 24px;
}

.login-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.login-welcome {
  margin: 0 0 38px;
  color: rgba(17, 24, 39, 0.72);
  text-align: center;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.login-fields {
  display: grid;
  gap: 20px;
}

.login-field {
  display: grid;
  gap: 10px;
}

.login-field > span {
  color: #111827;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: -0.035em;
}

.input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  font-weight: 850;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.input::placeholder {
  color: rgba(17, 24, 39, 0.34);
  font-weight: 750;
}

.input:focus {
  border-color: rgba(0, 87, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(0, 87, 255, 0.08);
  background: #fff;
}

.password-box {
  position: relative;
}

.password-box .input {
  padding-right: 72px;
}

.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #f4f6f9;
  color: rgba(17, 24, 39, 0.58);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.eye-btn:hover {
  background: #eef4ff;
  color: var(--login-blue);
}

.error {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.error.show,
.error.active {
  display: block;
}

.btn-login {
  width: 100%;
  height: 62px;
  margin-top: 34px;
  border: 0;
  border-radius: 13px;
  background: var(--login-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -0.04em;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(0, 87, 255, 0.25);
  transition:
    transform 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.btn-login:hover {
  transform: translateY(-4px);
  background: #004df0;
  box-shadow: 0 26px 58px rgba(0, 87, 255, 0.32);
}

.btn-login:active {
  transform: scale(0.99);
}

.btn-login:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.login-line {
  height: 1px;
  margin: 32px 0 26px;
  background: rgba(15, 23, 42, 0.08);
}

.signup-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.signup-row span {
  color: rgba(17, 24, 39, 0.58);
  font-size: 14px;
  font-weight: 750;
}

.signup-row a {
  color: var(--login-blue);
  font-size: 14px;
  font-weight: 1000;
}

.signup-row a:hover {
  text-decoration: underline;
}

.rt-modal-ov {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(5px);
}

.rt-modal-ov.show {
  display: flex;
}

.rt-modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100dvh - 40px));
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.rt-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.rt-modal-title {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.rt-modal-close {
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.rt-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.rt-modal-text {
  white-space: pre-line;
  color: rgba(15, 23, 42, 0.72);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.75;
  letter-spacing: -0.025em;
}

.rt-modal-foot {
  padding: 18px 24px 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.rt-modal-ok {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--login-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000000;
  display: none;
  padding: 12px 16px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  transform: translateX(-50%);
}

.toast.show {
  display: block;
  animation: toastIn 0.25s ease both;
}

@keyframes loginUp {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(8px);
  }

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

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 980px) {
  .login-page {
    min-height: calc(100vh - 62px);
  }

  .login-section {
    min-height: calc(100vh - 62px);
    padding: 54px 20px 74px;
  }
}

@media (max-width: 640px) {
  .login-section {
    padding: 34px 16px 60px;
  }

  .login-card {
    padding: 44px 28px 42px;
    border-radius: 20px;
  }

  .login-logo {
    width: 132px;
  }

  .login-welcome {
    margin-bottom: 32px;
    font-size: 15px;
  }

  .input {
    height: 54px;
  }

  .btn-login {
    height: 58px;
  }

  .signup-row {
    flex-wrap: wrap;
  }
}
.footer-grid {
  display: grid !important;
  grid-template-columns: 130px minmax(0, 1fr) 240px !important;
  gap: 28px !important;
  align-items: flex-start !important;
}

.footer-cs-box {
  width: 240px !important;
  min-width: 240px !important;
  margin-left: auto !important;
  padding-top: 2px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  align-items: flex-start !important;
}

.footer-cs-item {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.footer-cs-item span {
  display: block !important;
  margin: 0 0 6px !important;
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.035em !important;
}

.footer-cs-item strong {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.04em !important;
}

.footer-kakao-card,
#kakaoLink.footer-kakao-card {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  color: rgba(255, 255, 255, 0.88) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.footer-kakao-card:hover,
#kakaoLink.footer-kakao-card:hover {
  transform: none !important;
  background: transparent !important;
  border-color: transparent !important;
}

.footer-kakao-icon {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: transparent !important;
}

.footer-kakao-icon svg,
#kakaoLink.footer-kakao-card svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
}

.footer-kakao-text {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.footer-kakao-text b {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.04em !important;
}

.footer-kakao-text em {
  display: block !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.46) !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.035em !important;
}

.footer-kakao-card:hover .footer-kakao-text b,
#kakaoLink.footer-kakao-card:hover .footer-kakao-text b {
  color: #fee500 !important;
}

.footer-kakao-only,
.social.footer-kakao-only {
  display: none !important;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .footer-cs-box {
    width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    padding-top: 4px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 18px !important;
    align-items: start !important;
  }

  .footer-kakao-card,
  #kakaoLink.footer-kakao-card {
    grid-column: 1 / -1 !important;
  }

  .footer-cs-item span {
    font-size: 11.5px !important;
  }

  .footer-cs-item strong {
    font-size: 14px !important;
  }
}

@media (max-width: 520px) {
  .footer-main {
    padding: 26px 0 42px !important;
  }

  .footer-cs-box {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding-top: 2px !important;
  }

  .footer-kakao-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
  }

  .footer-kakao-icon svg,
  #kakaoLink.footer-kakao-card svg {
    width: 22px !important;
    height: 22px !important;
  }
}
