body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

.login-box {
  background: #f5f5f5;
  padding: 40px;
  border-radius: 15px;
  min-width: 320px;
  width: 380px;
  max-width: 95vw;
  text-align: center;
  box-shadow: 0 10px 30px rgba(60,60,60,0.08);
}

.login-box h2 {
  margin-bottom: 25px;
  color: #424242;
  font-size: 22px;
  font-weight: bold;
}

.form-group {
  text-align: left;
  margin-bottom: 15px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  display: block;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #bdbdbd;
  background: #fafafa;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s;
  color: #333;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #757575;
  box-shadow: 0 0 6px rgba(120,120,120,0.15);
  outline: none;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #757575, #616161);
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: linear-gradient(135deg, #616161, #424242);
}

.footer {
  margin-top: 20px;
  font-size: 12px;
  color: #888;
}

.msg {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 6px;
  font-size: 14px;
  display: none;
}
.msg.error {
  background: #ffcdd2;
  color: #b71c1c;
  border: 1px solid #e57373;
  display: block;
}
.msg.success {
  background: #c8e6c9;
  color: #1b5e20;
  border: 1px solid #81c784;
  display: block;
}

@media(max-width:600px){ 
  .body {
    width: 100vw;
    min-width: 0;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    height: auto;
    min-height: 100vh;
    align-items: flex-start;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
  }
  .login-box {
    width: 90vw !important;
    min-width: 0 !important;
    max-width: 90 vw !important;
    padding: 18px 8px 22px 8px;
    border-radius: 10px;
    margin: 18px auto;
    box-shadow: 0 4px 16px rgba(60,60,60,0.10);
  }
  .login-box img {
    width: 50vw !important;
    max-width: 120px !important;
    min-width: 60px !important;
    height: auto !important;
    margin-bottom: 12px !important;
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .login-box div[style*="font-size:18px"] {
    font-size: 15px !important;
    margin-bottom: 14px !important;
  }
  .form-group label {
    font-size: 13px;
  }
  .form-group input {
    font-size: 13px;
    padding: 10px;
  }
  button {
    font-size: 15px;
    padding: 10px;
  }
  .footer {
    font-size: 11px;
    margin-top: 14px;
  }
}
