* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f3f3f3;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  width: 100%;
  overflow-x: hidden;
}

.login-container {
  display: flex;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 1200px;
  min-height: 600px;
  width: 90%;
}

.login-image {
  background: url("https://media.istockphoto.com/id/893805088/vi/vec-to/bi%E1%BB%83u-t%C6%B0%E1%BB%A3ng-h%C3%ACnh-t%C6%B0%E1%BB%A3ng-gi%C3%A0y-ch%E1%BA%A1y-b%E1%BB%99-th%E1%BB%83-d%E1%BB%A5c-v%C3%A0-th%E1%BB%83-thao-%C4%91%E1%BB%93-h%E1%BB%8Da-vector-k%C3%BD-hi%E1%BB%87u-ph%C3%B2ng-t%E1%BA%ADp-th%E1%BB%83.jpg?s=612x612&w=0&k=20&c=49SlnHDRXbPY9D-DOmjFjy1P2upTjSMEPDVmCE0GwCA=")
    no-repeat center;
  background-size: contain;
  flex: 1;
}

.login-form,
.register-form {
  flex: 1;
  padding: 60px;
}

h2 {
  margin-bottom: 30px;
  font-size: 28px; /* tăng từ 20px hoặc mặc định */
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  background-color: #1e293b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.full-width-btn {
  width: 100%;
  display: block;
}

button:hover {
  background-color: #1c2b44;
}

.forgot,
.register,
.login-link {
  text-align: center;
  margin-top: 10px;
}

.forgot a,
.register a,
.login-link a {
  color: #3437de;
  text-decoration: none;
  font-size: 14px;
}

.password-wrapper {
  position: relative;
}

.password-wrapper i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}

select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    width: 100%;
    height: auto;
    min-height: auto;
    box-shadow: none;
    border-radius: 0;
  }

  .login-image {
    display: none; /* ẩn ảnh để tiết kiệm không gian */
  }

  .login-form,
  .register-form {
    padding: 30px 20px;
    width: 100%;
  }

  h2 {
    font-size: 22px;
    text-align: center;
  }

  input,
  select,
  button {
    font-size: 16px;
    padding: 10px;
  }

  .forgot a,
  .register a,
  .login-link a {
    font-size: 13px;
  }

  .password-wrapper i {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .login-form,
  .register-form {
    padding: 20px 16px;
  }

  h2 {
    font-size: 20px;
  }

  input,
  select,
  button {
    font-size: 15px;
  }
}
