/* =========================
   Base (PC 공통)
========================= */
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

.login-page {
  width: 100vw;
  height: 100vh;
  background: #ffffff;

  display: flex;
  flex-direction: column;
  justify-content: center;   /* 🔥 PC 중앙 유지 */
  align-items: center;

  font-family: AppleSDGothicNeoB00, sans-serif;
}

/* ===== 로고 (PC) ===== */
.login-page .logo {
  width: 494px;
  height: auto;
  max-width: 90vw;
  margin-bottom: 90px;
}

/* ===== Login Area (PC) ===== */
.login-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 686px;
}

.login-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-input {
  width: 562px;
  height: 71px;
  padding: 0 20px;

  border-radius: 16px;
  border: none;
  background: #f3f3f3;

  font-size: 15px;
  color: #000;
  outline: none;
}

/* ===== Password ===== */
.password-wrapper {
  position: relative;
}

.toggle-eye {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.6;
}

/* ===== Login Button (PC) ===== */
.login-button {
  width: 116px;
  height: 154px;

  border-radius: 18px;
  border: none;
  background: #2f2f2f;
  color: white;

  font-size: 16px;
  cursor: pointer;
}

/* ===== 로그인 로딩 오버레이 ===== */
.login-loading {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;

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

.login-loading.hidden {
  display: none;
}

.login-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  color: white;
  font-size: 16px;
  font-family: AppleSDGothicNeoM00;
}

/* 스피너 */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.app .login-container {
  flex-direction: column;
  align-items: stretch;
}

body.app .login-button {
  width: 100%;
  height: 56px;
  margin-top: 20px;
}

/* =========================
   📱 Mobile (iPhone Safari)
========================= */
@media (max-width: 430px) {
  .login-page {
    height: auto;
    min-height: 100svh;
    justify-content: center;
  }

  /* 로고 */
  .login-page .logo {
    width: 338px;
    margin-bottom: 50px;
  }

  /* 컨테이너 */
  .login-container {
    width: 100%;
    max-width: 360px;
    padding: 0 16px;
    box-sizing: border-box;

    flex-direction: column;
    gap: 12px;
  }

  .login-inputs {
    width: 100%;
  }

  /* 입력창 (Safari 확대 방지 핵심) */
  .login-input {
    width: 100%;
    height: 52px;
    font-size: 16px;        /* 🔥 16px 필수 */
    padding: 0 16px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  /* 로그인 버튼 */
  .login-button {
    width: 100%;
    height: 52px;
    font-size: 16px;
    border-radius: 12px;
    margin-top: 8px;
  }
}