
.toss-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #3182F6 0%, #1B64DA 100%);
  color: #FFFFFF;
  font-size: calc(16px * var(--ui-scale-modal-body, 1));
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(49, 130, 246, 0.3);
  min-width: 200px;
}

.toss-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 246, 0.4);
  background: linear-gradient(135deg, #4A93F7 0%, #2B74EA 100%);
}

.toss-login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(49, 130, 246, 0.3);
}

.toss-login-btn:disabled {
  background: #B0C4DE;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.toss-login-btn .toss-logo {
  width: 24px;
  height: 24px;
}

.toss-login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.toss-login-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.toss-login-modal {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 40px;
  width: 90%;
  max-width: calc(420px * var(--ui-scale-modal-size, 1));
  text-align: center;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.toss-login-modal-overlay.active .toss-login-modal {
  transform: translateY(0) scale(1);
}

.toss-login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #F5F6F8;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.toss-login-modal-close:hover {
  background: #E8EBED;
}

.toss-login-modal-close svg {
  width: 20px;
  height: 20px;
  color: #6B7684;
}

.toss-login-header {
  margin-bottom: 32px;
}

.toss-login-header .toss-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.toss-login-header .toss-brand-logo {
  width: 48px;
  height: 48px;
}

.toss-login-header .toss-brand-text {
  font-size: calc(28px * var(--ui-scale-modal-body, 1));
  font-weight: 700;
  color: #191F28;
}

.toss-login-header h2 {
  font-size: calc(22px * var(--ui-scale-modal-body, 1));
  font-weight: 600;
  color: #191F28;
  margin: 0 0 8px 0;
}

.toss-login-header p {
  font-size: calc(14px * var(--ui-scale-modal-body, 1));
  color: #6B7684;
  margin: 0;
  line-height: 1.5;
}

.toss-login-body {
  margin-bottom: 24px;
}

.toss-login-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.toss-login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #F8F9FA;
  border-radius: 12px;
  text-align: left;
}

.toss-login-feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3182F6 0%, #1B64DA 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toss-login-feature-icon svg {
  width: 22px;
  height: 22px;
  color: #FFFFFF;
}

.toss-login-feature-text {
  flex: 1;
}

.toss-login-feature-text strong {
  display: block;
  font-size: calc(14px * var(--ui-scale-modal-body, 1));
  font-weight: 600;
  color: #191F28;
  margin-bottom: 2px;
}

.toss-login-feature-text span {
  font-size: calc(12px * var(--ui-scale-modal-body, 1));
  color: #8B95A1;
}

.toss-login-modal .toss-login-main-btn {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #3182F6 0%, #1B64DA 100%);
  color: #FFFFFF;
  font-size: calc(17px * var(--ui-scale-modal-body, 1));
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(49, 130, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.toss-login-modal .toss-login-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(49, 130, 246, 0.45);
}

.toss-login-modal .toss-login-main-btn:active {
  transform: translateY(0);
}

.toss-login-modal .toss-login-main-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: toss-spin 0.8s linear infinite;
}

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

.toss-login-footer {
  padding-top: 20px;
  border-top: 1px solid #F1F3F5;
}

.toss-login-footer p {
  font-size: calc(12px * var(--ui-scale-modal-body, 1));
  color: #ADB5BD;
  margin: 0;
}

.toss-login-footer a {
  color: #3182F6;
  text-decoration: none;
}

.toss-login-footer a:hover {
  text-decoration: underline;
}

.toss-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #F0F7FF 0%, #E8F3FF 100%);
  border-radius: 14px;
  border: 1px solid rgba(49, 130, 246, 0.15);
}

.toss-user-profile .avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3182F6 0%, #1B64DA 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: calc(18px * var(--ui-scale-modal-body, 1));
  font-weight: 700;
}

.toss-user-profile .user-info {
  flex: 1;
  text-align: left;
}

.toss-user-profile .user-name {
  font-size: calc(15px * var(--ui-scale-modal-body, 1));
  font-weight: 600;
  color: #191F28;
  margin-bottom: 2px;
}

.toss-user-profile .user-status {
  font-size: calc(12px * var(--ui-scale-modal-body, 1));
  color: #3182F6;
  display: flex;
  align-items: center;
  gap: 4px;
}

.toss-user-profile .user-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #20C997;
  border-radius: 50%;
}

.toss-logout-btn {
  padding: 8px 14px;
  background: #FFFFFF;
  color: #6B7684;
  font-size: calc(13px * var(--ui-scale-modal-body, 1));
  font-weight: 500;
  border: 1px solid #E5E8EB;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toss-logout-btn:hover {
  background: #F8F9FA;
  color: #191F28;
  border-color: #D1D6DB;
}

.toss-login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.toss-login-divider::before,
.toss-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E8EB;
}

.toss-login-divider span {
  font-size: calc(13px * var(--ui-scale-modal-body, 1));
  color: #ADB5BD;
  white-space: nowrap;
}

.toss-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #191F28;
  color: #FFFFFF;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: calc(14px * var(--ui-scale-modal-body, 1));
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.toss-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toss-toast.success {
  background: linear-gradient(135deg, #20C997 0%, #12B886 100%);
}

.toss-toast.error {
  background: linear-gradient(135deg, #FF6B6B 0%, #FA5252 100%);
}

.toss-toast svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .toss-login-modal {
    padding: 28px 20px;
    margin: 16px;
    width: calc(100% - 32px);
    border-radius: 20px;
  }

  .toss-login-header .toss-brand-text {
    font-size: calc(24px * var(--ui-scale-modal-body, 1));
  }

  .toss-login-header h2 {
    font-size: calc(20px * var(--ui-scale-modal-body, 1));
  }

  .toss-login-btn {
    width: 100%;
    padding: 16px 24px;
  }
}

@media (prefers-color-scheme: dark) {
  .toss-login-modal {
    background: #1E2128;
  }

  .toss-login-header .toss-brand-text,
  .toss-login-header h2 {
    color: #F8F9FA;
  }

  .toss-login-header p {
    color: #8B95A1;
  }

  .toss-login-feature {
    background: #2B3039;
  }

  .toss-login-feature-text strong {
    color: #F8F9FA;
  }

  .toss-login-footer {
    border-top-color: #2B3039;
  }

  .toss-user-profile {
    background: linear-gradient(135deg, #1A2332 0%, #1E2738 100%);
    border-color: rgba(49, 130, 246, 0.25);
  }

  .toss-user-profile .user-name {
    color: #F8F9FA;
  }
}
