/* ============================================================
   iPlan — 로그인 / 랜딩 화면
   Google OAuth + 게스트 모드
   ============================================================ */

/* ── 로그인 화면 컨테이너 ── */
.ip-login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-base);
  padding: var(--s-6);
}

/* ── 로그인 카드 ── */
.ip-login-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-10) var(--s-8);
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: loginCardIn var(--duration-slow) var(--ease-default);
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── 로고 ── */
.ip-login-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--accent), #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  color: var(--bg-base);
  margin: 0 auto var(--s-5);
  box-shadow: var(--shadow-glow);
}

/* ── 타이틀 / 설명 ── */
.ip-login-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-main);
  margin-bottom: var(--s-2);
}

.ip-login-desc {
  font-size: var(--text-sm);
  color: var(--text-sub);
  margin-bottom: var(--s-8);
}

/* ── Google 로그인 버튼 ── */
.ip-google-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-6);
  background: var(--surface-w3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
  min-height: 48px;
}

.ip-google-btn:hover {
  background: var(--surface-w4);
  box-shadow: var(--shadow-md);
}

.ip-google-btn:active {
  transform: scale(0.98);
}

.ip-google-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 로딩 상태 */
.ip-google-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.ip-google-btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.6s linear infinite;
}

/* ── 게스트 로그인 링크 ── */
.ip-login-skip {
  margin-top: var(--s-4);
}

.ip-login-skip a {
  color: var(--accent);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: opacity var(--duration-fast) var(--ease-default);
}

.ip-login-skip a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ── 푸터 ── */
.ip-login-footer {
  margin-top: var(--s-8);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

/* ── 에러 메시지 (로그인 실패) ── */
.ip-login-error {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  background: var(--danger-dim);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--danger);
  display: none;
}

.ip-login-error.show {
  display: block;
  animation: shake 0.3s var(--ease-default);
}
