/* ========================================================
   Login & 2-Factor Authentication (OTP) - Google Sign-In Style
   구글 계정 로그인 스타일의 심플 & 미니멀 화이트 테마
   ======================================================== */

.login-overlay {
  position: fixed;
  inset: 0;
  background-color: #f0f4f9;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 28px;
  padding: 40px 36px;
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.15), 0 4px 8px 3px rgba(60,64,67,0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4285f4 0%, #ea4335 33%, #fbbc05 66%, #34a853 100%);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: #e8f0fe;
  color: #1a73e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #202124;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13.5px;
  color: #5f6368;
}

/* 폼 그룹 */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #3c4043;
  margin-bottom: 8px;
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-icon {
  position: absolute;
  left: 14px;
  color: #5f6368;
  font-size: 16px;
}

.form-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #747775;
  border-radius: 8px;
  padding: 13px 14px 13px 42px;
  color: #202124;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border: 2px solid #0b57d0;
  padding-left: 41px;
}

.btn-login {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  background: #0b57d0;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  background: #0842a0;
  box-shadow: 0 1px 3px 1px rgba(11, 87, 208, 0.25);
}

/* ================= 2단계 OTP 전용 스타일 ================= */
.otp-container {
  display: none;
  animation: fadeIn 0.25s ease;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 20px;
}

.otp-box {
  width: 48px;
  height: 56px;
  background: #ffffff;
  border: 1.5px solid #dadce0;
  border-radius: 10px;
  color: #202124;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.15s ease;
  font-variant-numeric: tabular-nums;
}

.otp-box:focus {
  border-color: #0b57d0;
  box-shadow: 0 0 0 2px rgba(11, 87, 208, 0.2);
}

.otp-timer-bar {
  width: 100%;
  height: 4px;
  background: #e8eaed;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 20px;
}

.otp-timer-progress {
  height: 100%;
  background: #1e8e3e;
  width: 100%;
  transition: width 1s linear;
}

.otp-guide {
  font-size: 13px;
  color: #5f6368;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 20px;
}

.otp-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
}

.otp-back-btn {
  background: none;
  border: none;
  color: #5f6368;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
}

.otp-back-btn:hover {
  color: #202124;
}

.otp-setup-btn {
  background: none;
  border: none;
  color: #0b57d0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* 오류 메시지 토스트 */
.login-error-msg {
  display: none;
  background: #fce8e6;
  border: 1px solid #f8b4b4;
  color: #d93025;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  margin-bottom: 18px;
  text-align: center;
}

/* OTP 등록 모달 (구글 다이얼로그 스타일) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 28px;
  max-width: 440px;
  width: 100%;
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(60,64,67,0.15);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
