body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    flex-direction: column;
}

.notice-container {
    background-color: #f9dcdc;
    border-left: 5px solid #f44336;
    padding: 10px 15px;
    margin-bottom: 50px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    max-width: 900px;
    width: 100%;
    text-align: left;
    font-size: 1em; /* Adjusted font size for readability */
}

.notice-container i {
    color: #f44336;
    font-size: 1.5em;
    margin-right: 10px;
}

.notice-container p {
    margin: 0;
    font-size: 1em; /* Adjusted for better scaling */
    color: #333;
}

.login-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    font-size: 1em; /* Adjusted font size for readability */
}

.login-container h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-size: 1.5em; /* Adjusted for better scaling */
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em; /* Adjusted for better scaling */
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 40px;
}

.password-container .eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-container button:hover {
    background-color: #45a049;
}

.error-message {
    color: red;
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em; /* Slightly smaller font size */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notice-container {
        font-size: 0.9em; /* Slightly smaller font size for tablets */
    }

    .login-container h2 {
        font-size: 1.2em; /* Reduced font size for better scaling */
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        font-size: 0.9em; /* Reduced font size for better scaling */
    }
}

@media (max-width: 600px) {
    .login-container,
    .notice-container {
        padding: 15px;
        max-width: 100%;
        margin: 10px; /* Added margin for better spacing on small screens */
    }

    .login-container h2 {
        font-size: 1.1em; /* Further reduced font size for small screens */
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        padding: 8px; /* Reduced padding for smaller screens */
        font-size: 0.85em; /* Further reduced font size */
    }

    .notice-container i {
        font-size: 1.2em; /* Adjusted icon size */
    }

    .notice-container p {
        font-size: 0.85em; /* Further reduced font size */
    }

    .login-container button {
        padding: 8px; /* Reduced button padding */
        font-size: 14px; /* Slightly smaller button text */
    }
}
