.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-box {
  max-width: 500px;
  padding: 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.login-title {
  text-align: center;
  color: #333;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 30px;
}

.login-desc {
  text-align: center;
  color: #333;
  margin-bottom: 50px;
  line-height: 1.3;
}

.login-form .form-group {
  margin-bottom: 30px;
}

.login-form .form-group input {
  width: 100%;
  background: #FCFCFC;
  border: 1px solid #D9D9D9;
  border-radius: 5px;
}

.login-form .login-button {
  width: 100%;
  background: var(--point-color);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  height: 50px;
  transition: background 0.3s;
  margin-top: 20px;
  margin-bottom: 30px;
}

.login-form .login-button:hover {
  background: var(--point-color-hover);
}

.find-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.find-links a {
  color: #333;
  font-size: 15px;
  text-decoration: none;
}

.find-links a:hover {
  color: var(--point-color);
  text-decoration: underline;
}

.social-login-wrap {
  margin: 32px 0 18px 0;
  text-align: center;
}

.social-login-title {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  margin-bottom: 26px;
}

.social-login-title span {
  margin: 0 12px;
}

.social-login-title:before,
.social-login-title:after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #D9D9D9;
  margin: 0 8px;
}

.social-btns {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 0;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border: 1px solid #eee;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.social-btn:hover {
  box-shadow: 0 2px 8px rgba(164, 143, 212, 0.12);
}

.signup-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 68px;
  font-size: 15px;
  color: #636363;
  align-items: center;
}

.signup-link a {
  margin-left: 49px;
  border: 1px solid #D9D9D9;
  border-radius: 5px;
  padding: 8px 30px;
  background: #fff;
  font-size: 15px;
  transition: background 0.3s, border 0.3s;
  word-break: keep-all;
}

.signup-link a:hover {
  background: #f5f2fa;
  border: 1px solid var(--point-color);
}

.alert {
  font-size: 13px;
  text-align: center;
}

.alert-danger {
  color: #dc3545;
}

.alert-warning {
  color: #ffc107;
}

/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.close {
  font-size: 24px;
  font-weight: 300;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: #333;
}

.modal-body {
  padding: 24px;
}

.modal-body .form-group {
  margin-bottom: 20px;
}

.modal-body .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.modal-body .form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.modal-body .form-group input:focus {
  outline: none;
  border-color: var(--point-color);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-primary {
  flex: 1;
  padding: 12px;
  background: var(--point-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--point-color-hover);
}

.btn-secondary {
  flex: 1;
  padding: 12px;
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #e9ecef;
}

.result-message {
  margin-top: 20px;
  padding: 16px 0;
  border-radius: 6px;
  text-align: center;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px 0;
  border-radius: 10px;
  font-size: 14px;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px 0;
  border-radius: 10px;
  font-size: 14px;
}

/* 아이디 결과 컨테이너 */
.id-result-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  color: #666;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background: #f8f9fa;
  color: var(--point-color);
}

.copy-btn:active {
  transform: scale(0.95);
}

#foundUserId { display: none; }

@media (max-width: 768px) {
  .login-box {
    padding: 40px 16px;
  }
}

/* 반응형 */
@media (max-width: 480px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .id-result-container {
    gap: 6px;
  }
}