/* --- Admin Login Page Specific Styles --- */

.admin-login-page {
    /* The main content area for admin page - overrides page-content flex-direction for this layout */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Adjust for header/footer if they are fixed height */
    position: relative; /* For positioning background layers */
    padding: 20px;
    max-width: none; /* Allow full width to accommodate background layers */
    margin: 0; /* Remove auto margin to stretch */
}

/* Background image and overlay for the admin page */
.admin-login-page .background-image {
    position: absolute; /* Position within the main tag */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://source.unsplash.com/1920x1080/?property,realestate,city'); /* A different image for admin theme */
    background-size: cover;
    background-position: center;
    filter: brightness(0.7) blur(2px); /* Slightly darken and blur the image */
    z-index: 0; /* Behind the content and overlay */
    border-radius: 20px; /* Match container border radius */
    overflow: hidden; /* Ensure image doesn't break border-radius */
}

.admin-login-page .background-overlay {
    position: absolute; /* Position within the main tag */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(16, 37, 66, 0.9), rgba(248, 112, 96, 0.8)); /* Blended gradient with opacity */
    z-index: 1; /* Above the image, below the content */
    border-radius: 20px; /* Match container border radius */
}

.admin-grid-container {
    position: relative; /* Context for z-index */
    z-index: 2; /* Ensure content is above background layers */
    width: 100%;
    max-width: 1200px; /* Max width for the content grid */
    display: flex;
    gap: 40px; /* Space between description and login form */
    justify-content: center;
    align-items: center;
    padding: 40px; /* Padding inside the grid container */
    border-radius: 20px; /* Overall glassy container for content */
    /* Remove redundant glassy background here, it's applied to children */
}

/* Admin Description Section */
.admin-description {
    flex: 1;
    min-width: 300px; /* Ensure it doesn't get too small */
    padding: 40px;
    text-align: left;
    background: rgba(255, 255, 255, 0.1); /* Lighter glassy for description */
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.25);
    line-height: 1.8;
}

.admin-description h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #f87060;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.admin-description p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.admin-description ul {
    list-style: none;
    margin-bottom: 25px;
    padding-left: 0;
}

.admin-description li {
    font-size: 1.05em;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
}

.admin-description li i {
    color: #f87060;
    margin-right: 15px;
    font-size: 1.3em;
    width: 25px;
}

/* Login Form Box */
.admin-login-page .form-box { /* Target form-box specifically within admin page */
    flex: 1;
    max-width: 450px;
    min-width: 300px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15); /* Slightly more opaque glassy for form */
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.25);
}

.admin-login-page .logo-container h2 {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.admin-login-page .form-box h2 {
    font-size: 2em;
}

/* Secondary Button for "Go Back" (general style, not specific to admin page) */
.btn-secondary {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #f87060;
    transform: translateY(-1px);
    color: #f87060;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .admin-grid-container {
        flex-direction: column; /* Stack description and form vertically */
        gap: 30px;
        padding: 30px 15px;
    }

    .admin-description {
        padding: 30px;
        text-align: center;
    }

    .admin-description h2 {
        font-size: 2em;
    }

    .admin-description p,
    .admin-description li {
        font-size: 0.95em;
    }

    .admin-description li {
        justify-content: center;
    }

    .admin-login-page .form-box {
        padding: 30px;
    }

    .admin-login-page .logo-container h2 {
        font-size: 1.8em;
    }

    .admin-login-page .form-box h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .admin-description h2 {
        font-size: 1.8em;
    }

    .admin-login-page .form-box h2 {
        font-size: 1.6em;
    }

    .admin-description {
        padding: 20px;
    }

    .admin-login-page .form-box {
        padding: 20px;
    }
}