/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #333333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(25, 60, 118, 0.5);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Header */
h1 {
    color: #1E4A7A;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bolder;
}

/* Form styles */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

label {
    font-size: 14px;
    font-weight: 500;
    color: #1E4A7A;
    margin-bottom: 5px;
}

/* Input fields for text, email, password */
input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #1E4A7A;
    box-shadow: 0 0 0 3px rgba(30, 74, 122, 0.1);
}

/* Button styles */
button {
    margin-top: 10px;
    padding: 12px 24px;
    background-color: #1E4A7A;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #2A5A8A;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Message styles */
#msg {
    font-size: 14px;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
        margin: 10px;
    }

    h1 {
        font-size: 20px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    button {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 20px 15px;
    }
}
