/* static/css/login.css */

/* font & reset */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Noto Sans TC", -apple-system, system-ui, sans-serif;
}

body {
  background-color: #83858F;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bg-layer-image {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 540px;
  background: 
    linear-gradient(rgba(27, 38, 59, 0.35), rgba(27, 38, 59, 0.35)), 
    url('/shared_assets/login_bg.jpg') no-repeat center center;
  background-size: cover;
  z-index: 0;
}

.login-card {
  position: relative;
  background: #FFF;
  border-radius: 12px;
  padding: 40px 45px 30px; 
  max-width: 450px;
  min-height: 480px;
  width: 100%;
  box-sizing: border-box; 
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  text-align: center;
  z-index: 10;
}

.login-card .login-logo img {
  max-width: 130px;
  margin-bottom: 25px;
}

.login-card .login-title {
  margin: 0 0 20px;
  font-size: 24px;
  color: #1B263B;
  font-weight: 800;
}

.alert {
  background-color: #F8D7DA;
  color: #842029;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 6px;
  text-align: left;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.form-group input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #CCC;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #0052CC;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.15);
}

.btn-primary {
  width: 100%;
  height: 44px;
  background-color: #0052CC;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}
.btn-primary:hover {
  background-color: #003C99;
}

.footer {
  margin-top: auto;
  padding-top: 20px;
  font-size: 12px;
  color: #aaa;
}

@media (max-width: 480px) {
  body {
    padding: 16px;
    box-sizing: border-box;
  }
  .bg-layer-image {
    height: 100%;
  }
  .login-card {
    padding: 28px 20px 24px;
    min-height: auto;
    width: 100%;
    border-radius: 16px;
  }
  .login-card .login-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
}
