html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

.title-container {
    text-align: center;
    padding: 20px 0;
}

.main-title {
    font-size: 26px;
    font-weight: bold;
    color: #333;
}

.sub-title {
    font-size: 18px;
    color: #666;
    margin-top: 5px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    width: 300px;
    margin: 0 auto;
    border: none;
    margin-bottom: 20px;
}

form {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form label {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

form input[type="text"],
form input[type="password"] {
    width: calc(100% - 12px);
    padding: 6px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

form input[type="submit"] {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

form input[type="submit"]:hover {
    background-color: #0056b3;
}

.password-strength,
.password-match {
    margin-top: 5px;
    font-size: 0.9em;
}

.error,
.success {
    text-align: center;
    margin-bottom: 10px;
}

.success {
    color: green;
}

.home-button2 {
    display: inline-block;
    background-color: green;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.home-button2:hover {
    background-color: #218838;
}

.switch-login {
    display: block;
    margin-top: 10px;
    text-align: right;
    color: #007BFF;
    cursor: pointer;
    text-decoration: underline;
}

.extra-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.extra-buttons a {
    width: 48%;
}

.banner1 {
    width: 100%;
    height: 50px;
    background: linear-gradient(to right, #e0e0e0, #b0b0ee);
    display: flex;
    justify-content: right;
    align-items: center;
    margin: 0;
    padding: 0;
}

.banner1-text {
    font-weight: bold;
    font-size: 15px;
    color: #FFFFFF;
    margin-top: 5px;
    margin-left: 5px;
}

.header-menu {
    width: 100%;
    height: 80px;
    background: linear-gradient(to right, #e0e0e0, #b0b0ee);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0;
}

.icon-button {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: cover;
}

.icon-button:hover {
    transform: scale(1.1);
}

.home-button {
    background-image: url('https://www.gdv8.cn/Sources/Button/main.png');
}

.more-button {
    background-image: url('https://www.gdv8.cn/Sources/Button/more.png');
}

.text-icon-button {
    width: auto;
    height: 45px;
    background: linear-gradient(to bottom, #eee, #222);
    border: 1px solid #888;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    color: white;
    font-weight: bolder;
    font-size: 15px;
}

.text-icon-button:hover {
    background: linear-gradient(to bottom, #555, #333);
}

.password-tip {
    color: gray;
    font-size: 12px;
}

.invalid {
    border: 1px solid red;
}

.valid {
    border: 1px solid green;
}