* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import standardized styles */
@import url("standardized-styles.css");

body, html {
    height: 100%;
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    margin-top: 0; /* Remove top margin */
    padding: 0;
}

/* Hero background section */
.hero-section {
    position: absolute; /* Change to absolute positioning */
    top: 0;
    left: 0;
    width: 99vw; 
    height: 100vh; /* Use full viewport height */
    background-image: url('../signinbg.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0; /* Lower z-index to be behind content */
}

/* Background overlay only */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* Login container above background */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    margin-top: 15vh; /* Add margin to account for header */
}

/* Login card */
.login-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Header inside card */
.login-header {
    background-color: var(--primary-color);
    color: white;
    padding: 25px 20px 50px;
    text-align: center;
    position: relative;
}

.login-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.login-logo {
    width: 100px;
    background-color: var(--bg-white);
    border-radius: 50%;
    padding: 5px;
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--bg-white);
}

/* Body of login */
.login-body {
    padding: 60px 30px 30px;
}

.error-message {
    background-color: var(--alert-danger-bg);
    color: var(--alert-danger-text);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: var(--font-size-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
}

.form-group input:focus {
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(39, 90, 137, 0.25);
}

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--primary-color);
    font-size: var(--font-size-sm);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Button */
.login-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    transition: var(--transition-normal);
}

.login-button:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.login-footer {
    padding: 20px;
    text-align: center;
    font-size: var(--font-size-sm);
    border-top: 1px solid var(--border-light);
}

.login-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

.footer-branding {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.footer-logo {
    height: 70px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .login-container {
        padding: 0 10px;
    }

    .login-header h2 {
        font-size: var(--font-size-lg);
    }

    .login-logo {
        width: 70px;
        bottom: -35px;
    }

    .login-body {
        padding: 50px 20px 30px;
    }
}

/* Remove any header styling from login.css to prevent conflicts */
/* Let the header.php and its associated CSS handle the header styling */