* {

  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #f8f8f8, #ececec);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  display: flex;
  width: 1000px;
  height: 600px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* Bên trái */
.login-left {
  flex: 1;
  background: linear-gradient(to right, #3a498a, #173691);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-left .logo {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.login-left h2 {
  font-size: 20px;
  text-align: center;
  padding: 0 20px;
  line-height: 1.4;
}

/* Bên phải */
.login-right {
  flex: 1;
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-right h1 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #173691;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-weight: 600;
}

label span {
  color: red;
}

input {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

input:focus {
  border-color: #222;
}

.password-container {
  position: relative;
}

.password-container i {
  position: absolute;
  right: 15px;
  top: 12px;
  cursor: pointer;
  color: #777;
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(to right, #3a498a, #173691);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

button:hover {
  background: linear-gradient(to right, #3a498a, #03113e);
}

.extra-links {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.extra-links a {
  color: #222;
  text-decoration: none;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .login-container {
    width: 95%;
    height: auto;
    flex-direction: column;
    margin: 40px 0;
  }

  .login-left,
  .login-right {
    width: 100%;
  }

  .login-left {
    padding: 40px 0;
  }

  .login-right {
    padding: 40px 30px;
  }
}

@media (max-width: 768px) {
  .login-left h2 {
    font-size: 18px;
    padding: 0 10px;
  }

  .login-right h1 {
    font-size: 24px;
  }

  input {
    font-size: 14px;
    padding: 8px 12px;
  }

  button {
    padding: 10px;
    font-size: 15px;
  }

  .extra-links {
    font-size: 13px;
  }

  .password-container i {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 480px) {
  .login-left {
    display: none;
    /* Ẩn logo bên trái để tối ưu không gian */
  }

  .login-container {
    width: 100%;
    height: 100vh;
    justify-content: center;
  }

  .login-right {
    padding: 30px 20px;
    box-shadow: none;
  }

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

  input,
  button {
    font-size: 14px;
  }

  .extra-links {
    font-size: 12px;
  }
}