/* login.css */

.login-page {
  padding: 80px 0;
  background-color: #fff;
}

.login-page .container {
  max-width: calc(768px - 32px) !important;
  width: calc(100% - 32px) !important;
  margin: 0 auto ;        /* 중앙 정렬 */
  padding: 0;                       
  box-sizing: border-box;
}

.login-wrap {
  text-align: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 24px;
}

.login-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 32px;
}

.login-tabs .tab {
  flex: 1;
  padding: 12px 0;
  font-size: 16px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
}

.login-tabs .tab.active {
  color: #111;
  border-bottom: 2px solid #111;
}

.login-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.login-form .form-group {
  margin-bottom: 12px;
}

.login-form .form-group input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 2px;
  box-sizing: border-box;
}

.login-form .form-group input::placeholder {
  color: #aaa;
}

.form-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #555;
  margin: 16px 0 24px;
}

.form-extra .remember {
  display: flex;
  align-items: center;
}

.form-extra .remember input {
  margin-right: 6px;
}

.form-extra .links a {
  margin-left: 12px;
  color: #555;
  text-decoration: none;
}

.form-extra .links a:hover {
  text-decoration: underline;
}

.btn-login {
  display: block;
  width: 100%;
  height: 48px;
  background-color: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  line-height: 48px;
  text-align: center;
}

.sns-login {
  margin-top: 40px;
}

.sns-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.sns-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
}

.sns-list li a img {
  width: 44px;
  height: 44px;
  display: block;
}

.join-area {
  text-align: center;
  margin-bottom: 80px;
}

.join-text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-join {
  display: inline-block;
  width: 100%;
  height: 48px;
  background-color: #E60026;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  line-height: 48px;
  text-align: center;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #e54c57;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.modal-close:hover {
  background: #c73741;
}
@media (max-width: 768px) {
  .login-page {
    padding: 40px 0;
  }

  .login-page .container {
    max-width: calc(100% - 32px) !important;
    width: calc(100% - 32px) !important;
  }

  .login-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .login-tabs .tab {
    font-size: 14px;
    padding: 10px 0;
  }

  .login-form .form-group input {
    height: 42px;
    font-size: 13px;
    padding: 0 10px;
  }

  .form-extra {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    margin: 12px 0 20px;
  }

  .btn-login,
  .btn-join {
    height: 44px;
    font-size: 15px;
    line-height: 44px;
  }

  .sns-login {
    margin-top: 32px;
  }

  .sns-list {
    gap: 12px;
    margin-bottom: 32px;
  }

  .sns-list li a img {
    width: 40px;
    height: 40px;
  }

  .join-area {
    margin-bottom: 60px;
  }

  .join-text {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .modal-content {
    padding: 20px;
    max-width: 90%;
  }

  .modal-close {
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 1;
  }
}
