* {
  margin: 0;
  padding: 0;
  border: none;
  box-sizing: border-box;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  font-family:'Helvetica Neue', Helvetica, Arial, Roboto, 'PingFang SC','Hiragino Sans GB', 'Microsoft Yahei', sans-serif;

}

.app-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-bg {
  width: 497px;
  background: url('../img/bg-login.png');
  background-size: cover;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.login-header {
  display: flex;
  padding: 20px;
  position: relative;
  z-index: 100;
}

.service-btn {
  position: absolute;
  top: 1.1rem;
  right: 1.15rem;
  cursor: pointer;
}

.login-header a img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.login-container {
  width: 100%;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-logo {
  margin-top: 68px;
  text-align: center;
}

.login-logo img {
  width: 152px;
  height: 152px;
}

.login-title {
  color: #fff;
  font-size: 25px;
  text-align: center;
  margin-top: 7px;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.login-form label {
  color: #fff;
  margin-bottom: 8px;
  margin-top: 16px;
  font-size: 16px;
}

.login-form input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 5px;
  font-size: 16px;
  background: #2c2f37;
  color: #fff;
  line-height: 1.5rem;
  border: none;
  margin-top: 7px;
}

.login-form input::placeholder {
  color: #8D8D8D;
}

.login-form input:focus {
  outline: none;
  box-shadow: 0 0 0 1px #DEBF62;
}

.password-box {
  position: relative;
  display: flex;
  align-items: center;
}

.toggle-pw {
  position: absolute;
  width: 30px;
  height: 24px;
  right: 15px;
  top: 20px;
  cursor: pointer;
}

.login-btn {
  margin-top: 48px;
  padding: 10px 0;
  background: #DEBF62;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}

.login-btn:disabled {
  background: #d4d4d4;
  color: #999;
  cursor: not-allowed;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #1F2022;
  padding: 20px;
  border-radius: 5px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  max-height: 90vh; 
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 40px;
  margin-bottom: 10px;
}

.modal-title {
  text-align: center;
  font-size: 24px;
  color: #fff;
  letter-spacing: 1px;
}

.modal-close-btn {
  position: absolute;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 4px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.modal-btn {
  padding: 20px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  min-width: 80px;
}

.modal-btn-confirm {
  background: #DEBF62;
  color: #fff;
}

@media (max-width: 768px) {
  .login-header {
    padding: 15px 15px 0 15px;
  }
  
  .login-logo img {
    width: 145px;
    height: 145px;
  }
  
  .header-icons a img {
    width: 24px;
    height: 24px;
  }
  .modal-overlay {
    padding: 15px;
  }
  
  .modal-content {
    padding: 20px 15px;
    max-width: 90vw; 
  }
  
  .modal-title {
    font-size: 20px;
  }
  
  .modal-btn {
    padding: 12px 16px;
    font-size: 15px;
    min-width: 100px;
  }
}

@media (max-width: 480px) {
  body{
    background: #1F2022;
  }
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    padding: 15px;
    max-width: 95vw;
    border-radius: 3px;
  }
  
  .modal-title {
    font-size: 18px;
    letter-spacing: 0.5px;
  }
  
  .modal-close-btn {
    width: 20px;
    height: 20px;
  }
  
  .modal-buttons {
    margin-top: 15px;
  }
  
  .modal-btn {
    padding: 10px 15px;
    font-size: 14px;
    min-width: auto;
    width: 60%;
  }
}
@media (max-width: 375px) {
  .login-form input {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .login-btn {
    padding: 12px 0;
    font-size: 15px;
  }

  .modal-content {
    padding: 12px;
    max-width: 98vw;
  }
  
  .modal-title {
    font-size: 16px;
  }
  
  .modal-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}