/* Khu vự trước đăng nhập */

.home {
    position: relative;
    /* max-height: 950px; */
    width: 100%;
    height: 100vh;
    background: url(/image/Background.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
  }
  
  .home::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(184, 184, 185, 0.2); /* Lớp phủ đen với độ mờ 50% */
    z-index: 0; /* Đảm bảo lớp phủ chỉ ảnh hưởng đến background */
  }
  /* Các phần tử con không bị ảnh hưởng bởi lớp phủ */
  .home > * {
    z-index: 1;
  }
  
  .logo img {
    position: absolute;
    padding: 20px 40px;
    width: 180px; /* Giảm kích thước logo xuống còn 70px chiều rộng */
    z-index: 10;
  }
  
  .home .wrapper-login {
    position: relative;
    width: 440px;
    margin: 0 auto; /* Căn giữa theo chiều ngang */
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 35px 55px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(50px);
    border-radius: 10px;
    color: #fff;
  }
  
  .wrapper-login h2 {
    font-size: 2em;
    color: #fff;
    text-align: center;
  }
  
  .wrapper-login .input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 20px 0;
    margin-bottom: 40px;
  }
  
  .input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 1px solid #fff;
    outline: none;
    border-radius: 40px;
    font-size: 1em;
    color: #fff;
    padding: 0 25px 0 45px;
  }
  
  .input-box label {
    position: absolute;
    top: 50%;
    left: 45px;
    transform: translateY(-50%);
    font-size: 1em;
    color: #fff;
    pointer-events: none;
    transition: 0.5s;

    font-size: 0.8em;
    top: -14px;
    left: 17px;
  }
  .input-box input:focus ~ label,
  .input-box input:valid ~ label {
    font-size: 0.8em;
    top: -14px;
    left: 17px;
  }
  .input-box .icon {
    position: absolute;
    top: 14px;
    left: 15px;
    font-size: 1.2em;
    color: #fff;
  }
  
  /* Hiệu ứng khi input có giá trị (valid) */
  .input-box input:valid {
    background-color: rgba(212, 221, 230, 0.5); /* Màu nền trắng với độ mờ 50% */
    color: #000; /* Màu chữ đen khi có giá trị */
  }
  
  /* Icon trong input */
  .input-box .icon {
    position: absolute;
    top: 14px;
    left: 15px;
    font-size: 1.2em;
    color: #fff;
  }
  .wrapper-login .rememberMe {
    font-size: 0.9em;
    color: #fff;
    font-weight: 500;
    margin: -25px 0 15px;
    display: flex;
    justify-content: space-between;
  }
  /* Tăng kích thước của checkbox */
  .rememberMe input[type="checkbox"] {
    transform: scale(1.8); /* Tăng kích thước checkbox lên 1.5 lần */
    margin-right: 10px; /* Thêm khoảng cách giữa checkbox và label */
  }
  /* Cập nhật lại font-size của label để đồng nhất */
  .rememberMe label {
    font-size: 1em; /* Tăng kích thước chữ cho label */
  }
  
  .wrapper-login .btn {
    width: 100%;
    height: 50px;
    border: none;
    outline: none;
    border-radius: 40px;
    background: linear-gradient(90deg, #7e7e81, #051c9e);
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    font-size: 1em;
    color: #fff;
    font-weight: 500;
  }
  
  .wrapper-login .btn:hover {
    background: linear-gradient(90deg, #7e817e, #277c05);
    color: #f2f3f8;
  }
  
  .wrapper-login .regiter-link {
    font-size: 0.9em;
    color: #fff;
    text-align: left;
    margin: 30px 0;
    margin-top: 100px;
  }
  
  #LBNgayKham {
    /* background-color: #051c9e; */
    margin: 0;
  }

  .input-box input.filled ~ label {
    font-size: 0.8em;
    top: -14px;
    left: 17px;
  }
  /* Media Query để đảm bảo 4 khối nằm cùng một hàng trên điện thoại */
  @media (max-width: 600px) {
    .intro-box {
      max-width: 30%;
    }

    .home .wrapper-login {
      position: relative;
      width: 400px;
      
      /* height: 500px; */
      margin: 0 auto; /* Căn giữa theo chiều ngang */
      background: rgba(255, 255, 255, 0.1);
      padding: 140px 35px 55px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(50px);
      border-radius: 10px;
      color: #fff;
    }
    .logo img {
      width: 140px; /* Giảm kích thước logo xuống còn 70px chiều rộng */
    }
  }
  
  /* Điều chỉnh cho màn hình di động */
  /* @media (max-width: 600px) {
      .home .wrapper-login {
        width: 200px;
        padding: 40px; 
        border-radius: 15px; 
        background-color: #277c05;
      }
    } */
  @media (max-width: 1280px) {
    #KhuVucSauDangNhap {
      transform: scale(1); /* Thu nhỏ phần tử khi màn hình nhỏ */
      transform-origin: center; /* Đảm bảo tỷ lệ vẫn được giữ nguyên từ trung tâm */
    }
  }
  
  @media (max-width: 1080px) {
    #KhuVucSauDangNhap {
      transform: scale(1); /* Thu nhỏ phần tử khi màn hình nhỏ */
      transform-origin: center; /* Đảm bảo tỷ lệ vẫn được giữ nguyên từ trung tâm */
    }
  }
  