/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Loading Overlay Styles --- */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f4f4;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 5px solid rgba(166, 62, 64, 0.2);
    border-top: 5px solid #a63e40;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Main Layout --- */
.main-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Login Card Styling */
.login-card {
    background-color: white;
    width: 100%;
    max-width: 750px; 
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Header & Logo */
.card-header {
    text-align: center;
    padding: 30px 20px 10px 20px;
}

.logo-area {
    margin-bottom: 10px;
}

.main-logo {
    display: block;
    margin: 0 auto;
    max-width: 240px;
    width: 100%;
    height: auto;
}

/* UPDATED: Smoother Sans-Serif Font */
.access-header {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 28px;
    font-weight: 600; /* Semi-bold for a smoother look */
    color: #333;
    margin-top: 15px;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

/* Form Styling */
.card-body {
    padding: 10px 50px 30px 50px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #333;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 15px;
}

.btn-login {
    width: 100%;
    background-color: #a63e40;
    color: white;
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    text-transform: uppercase;
}

.btn-login:hover {
    background-color: #8c3335;
}

.forgot-link {
    text-align: center;
    margin-top: 15px;
}

.forgot-link a {
    color: #a63e40;
    font-size: 13px;
    text-decoration: none;
}

/* --- Powered by ADP Section --- */
.powered-by-adp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.powered-by-adp span {
    font-size: 13px;
    color: #666;
    font-weight: bold;
}

.adp-logo-small {
    height: 24px;
    width: auto;
}

/* Card Bottom Links Area */
.card-footer-links {
    background-color: #f9f4f4;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-column a {
    color: #a63e40;
    font-size: 13px;
    text-decoration: none;
}

.link-column a:hover {
    text-decoration: underline;
}

/* Page Footer */
.site-footer {
    background-color: #636466;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 12px;
}

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.housing-lender {
    display: flex;
    align-items: center;
    gap: 5px;
}

.housing-icon-placeholder {
    font-size: 20px;
    line-height: 1;
}
