html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}


/* Base Elements */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

p {
    margin-top: 3.75pt;
    margin-right: 5pt;
    margin-bottom: 9pt;
    margin-left: 5pt;
}

h2 {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #000;
    text-align: center;
    border-radius: 6px;
}

a {
    text-decoration: none;
    background-color: #f0f0f0;
    color: black;
}

a:hover {
    background-color: lightgrey;
}

a:active {
    background-color: grey;
}

/* Login Container & Logo */
.login-container {
    width: 300px;
    margin: auto;
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background-color: #fafafa;
    box-sizing: border-box;
    border: none;
    box-shadow: 0 0 0 2px white, 0 0 0 3px #ccc;
}

.logolarge {
    width: 250px;
/*    height: 250px; */
    margin-right: 3px;
    margin-top: 27px;
    margin-bottom: -30px;
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"], 
input[type="password"] {
    width: 90%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Error Messaging */
.error-message {
    color: red;
    font-weight: bold;
    padding-top: 15px;
    padding-bottom: 15px !important;
    margin-bottom: 30px;
    background: #fff5f5;
    border: 1px solid #edd;
}

/* Cloud Login Specific Input Background */
body.cloud-login input[type="text"],
body.cloud-login input[type="password"] {
    background-color: #e9e4c9;
}

+body.cloud-login input[type="text"]:-webkit-autofill,
+body.cloud-login input[type="password"]:-webkit-autofill,
+body.cloud-login input[type="text"]:-webkit-autofill:hover, 
+body.cloud-login input[type="password"]:-webkit-autofill:hover, 
+body.cloud-login input[type="text"]:-webkit-autofill:focus, 
+body.cloud-login input[type="password"]:-webkit-autofill:focus {
+    -webkit-box-shadow: 0 0 0 30px #e9e4c9 inset !important;
+}


/* Mobile Responsiveness for Login */
@media (max-width: 600px) {
    .login-container {
        width: 90%;
        padding: 10px;
    }

    input[type="submit"] {
        padding: 12px 20px;
    }
}