/* cả trang */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 20px;
}

a:hover {
  color: #808080;
}

/* phần header */
header {
  position: relative;
  background-color: #F8F8FF;
  padding: 12px 50px;
  height: 70px;
  margin-bottom: 40px;
}

.logo {
  float: left;
  width: 25%;
  font-family: display;
  font-weight: bolder;
}

.logo > p {
  font-size: 50px;
  font-style: oblique;
}

.menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu > li {
  display: inline-block;
  padding: 0 12px;
}

.menu > li > a:hover {
  color: #000000;
  border: none;
  border-bottom: 2px solid #000000;
}

.others {
  float: right;
  width: 25%;
  text-align: right;
}

.others > li {
  display: inline-block;
  padding: 0 12px;
  border: none;
  border-right: 2px solid #000000;
}

.others > li:last-child {
  border-right: none;
}

.others > li:first-child {
  position: relative;
}

.others > li:first-child input {
  width: 100%;
  height: 125%;
  border: none;
  border-bottom: 1px solid #333;
  background-color: #F8F8FF;
}

.others > li:first-child i {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* phần main */
main {
  margin: 0;
  padding: 40px 20px;
  font-family: monospace;
}

.login-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 40px 30px;
  background-color: #ffffff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  text-align: center;
}

.login-form h2 {
  margin-bottom: 24px;
  font-size: 28px;
  color: #333;
  text-align: center;
}

.login-form form input[type="text"],
.login-form form input[type="password"] {
  display: block;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.password-wrapper {
  width: 100%;
}

label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
  text-align: left;
}

.login-form form button {
  display: inline-block;
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  background-color: #000000;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-form form button:hover {
  background-color: #222;
}

.login-form .forgot {
  margin-top: 12px;
}

.login-form .forgot a {
  font-size: 14px;
  color: #000000;
  text-decoration: none;
}

.login-form .forgot a:hover {
  text-decoration: underline;
  color: #808080;
}

/* footer của trang */
footer {
  position: relative;
  background-color: #F8F8FF;
  padding: 40px 80px;
}

.footer-left {
  float: left;
  width: 70%;
  text-align: left;
}

.footer-left p {
  margin: 6px 0;
  line-height: 1.6;
}

.footer-right {
  position: absolute;
  bottom: 10px;
  right: 20px;
  text-align: right;
}

.footer-right p, .footer-right h4 {
  margin: 0;
}

/* responsive */
@media (max-width: 600px) {
  header {
        padding: 10px 20px;
        height: auto;
    }

    .logo {
        float: none;
        width: 100%;
        font-size: 30px;
        margin-bottom: 10px;
        text-align: center;
    }

    .menu {
        position: static;
        width: 70%;
        text-align: center;
        margin-left: 50%;
    }

    .menu > li {
        display: inline-block;
        padding: 15px 0;
        margin-right: 15px;
    }

    .menu > li:last-child {
        margin-bottom: 0;
    }

    .others {
        float: none;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .others > li {
        padding: 0 8px;
    }
    
    .others > li:first-child input {
        width: 100%;
    }

    footer {
        padding: 20px 20px;
    }

    .footer-left {
        float: none;
        width: 100%;
        transform: translateX(0);
        text-align: center;
    }

    .footer-right {
        position: static;
        text-align: center;
        padding: 10px 0;
    }

}

@media (min-width: 601px) and (max-width: 1024px) {
  header {
        padding: 10px 5px;
        height: auto;
    }

    .menu {
        left: 45%;
    }

    .menu > li {
        display: inline-block;
        margin-right: 5px;
    }

    .others {
        float: none;
        width: 100%;
        margin-top: 10px;
    }

    .others > li:first-child input {
        width: 70%;
    }

    .footer-left {
        width: 50%;
        transform: translateX(40px);
    }

    .footer-right {
        float: right;
        position: static;
        padding: 0;
    }
}
