*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
}
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f2f2f2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Card */
.login-card {
  width: 450px;
  max-width: 92%;
  background: #fff;
  border-radius: 10px;
  padding: 60px 45px 30px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Title */
.login-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 40px;
}

.login-notice {
  background: #fff7e6;
  border: 1px solid #f3d19c;
  border-radius: 8px;
  color: #8a5a00;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  margin-bottom: 24px;
  text-align: center;
}

/* Input group with floating label */
.input-group {
  position: relative;
  width: 100%;
  border-bottom: 2px solid #adadad;
  margin-bottom: 35px;
}
.input-group input {
  font-family: inherit;
  font-size: 15px;
  color: #555;
  display: block;
  width: 100%;
  height: 45px;
  background: transparent;
  padding: 0 5px;
  border: none;
  outline: none;
}
.input-group .label {
  position: absolute;
  top: 14px;
  left: 5px;
  font-size: 15px;
  color: #999;
  pointer-events: none;
  transition: all 0.3s;
}
.input-group .bar {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #21d4fd, #b721ff);
  transition: width 0.4s;
}
.input-group input:focus ~ .bar,
.input-group input.has-val ~ .bar {
  width: 100%;
}
.input-group input:focus ~ .label,
.input-group input.has-val ~ .label {
  top: -15px;
  font-size: 12px;
  color: #b721ff;
}

/* Button */
.btn-wrap {
  width: 100%;
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  margin-top: 10px;
}
.btn-bg {
  position: absolute;
  z-index: 0;
  width: 300%;
  height: 100%;
  background: linear-gradient(to right, #21d4fd, #b721ff, #21d4fd, #b721ff);
  top: 0;
  left: -100%;
  transition: left 0.4s;
}
.btn-wrap:hover .btn-bg {
  left: 0;
}
.btn-login {
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  width: 100%;
  height: 50px;
  border: none;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.5px;
}

/* Error */
.error-msg {
  background: #fff0f0;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #c80000;
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 25px;
  text-align: center;
}

/* Footer text */
.login-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}

@media (max-width: 576px) {
  .login-card {
    padding: 60px 20px 30px;
  }
}
