﻿/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');*/

:root {
    --primary-color: #3E7CB1;
    --primary-dark: #2C5A8B;
    --secondary-color: #5BC8AF;
    --background-light: #F5F7FA;
    --background-medium: #DFE4EA;
    --background-dark: #2C3E50;
    --text-dark: #1E2A38;
    --text-medium: #4E5D6C;
    --text-light: #F9FAFC;
    --border-light: #D2D7DF;
    --border-medium: #B0BCC9;
    --success-color: #2FAA62;
    --danger-color: #D64545;
    --warning-color: #E7AA46;
    --text-gray: #858DA0;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('../images/image2.png'); /* Ensure this path is correct for your background image */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: var(--text-dark);
}

.login-container {
    display: flex;
    width: 90%;
    max-width: 1000px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 600px;
}

.login-form-section {
    flex: 1;
    background-color: var(--background-light);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.login-form-section-inner {
    width: 100%;
    max-width: 350px;
}

.login-form-section .logo {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-form-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.validation-summary-errors {
    color: var(--danger-color);
    font-size: 0.9em;
    margin-bottom: 15px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-medium);
}

.form-control {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    color: var(--text-dark);
}

    .form-control::placeholder {
        color: var(--text-gray);
        opacity: 0.8;
    }

    .form-control:focus {
        border-color: var(--primary-color);
        outline: none;
    }

.text-danger {
    color: var(--danger-color);
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
}

.form-group.form-check {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.form-checkbox {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.form-label-inline {
    margin: 0;
    font-weight: 400;
    color: var(--text-medium);
    font-size: 0.9em;
}

.btn {
    display: inline-block;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

    .btn-primary:hover {
        background-color: var(--primary-dark);
    }

.btn-block {
    width: 100%;
    display: block;
}

/* Right Section - Info and Image */
.login-info-section {
    flex: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

    .login-info-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect x="0" y="0" width="50" height="50" fill="%23ffffff" opacity="0.05"/><rect x="50" y="50" width="50" height="50" fill="%23ffffff" opacity="0.05"/></svg>'); /* Subtle pattern */
        background-size: 20px 20px;
        opacity: 0.2;
        z-index: 0;
    }

.info-content {
    position: relative;
    z-index: 1;
}

.login-info-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.login-info-section p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.learn-more-button {
    padding: 12px 25px;
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    border: 2px solid var(--text-light);
    border-radius: 30px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .learn-more-button:hover {
        background-color: rgba(255, 255, 255, 0.4);
        border-color: rgba(255, 255, 255, 0.8);
    }


/* Updated: Styles for the design profiles container and individual images */
.design-profiles-container {
    margin-top: 50px;
    position: relative;
    width: 380px; /* Increased width for more space */
    height: 300px; /* Increased height for more space */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.design-profile-image {
    position: absolute;
    object-fit: contain; /* Changed to 'contain' to show full image, no cropping */
    background-color: transparent; /* Ensures no background if image has transparency */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out, box-shadow 0.4s ease-out;
    opacity: 0.9; /* Reduced transparency (more opaque) */
}

    .design-profile-image:hover {
        transform: scale(1.08) translateY(-5px); /* Slightly enlarge and lift */
        opacity: 1; /* Fully opaque on hover */
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); /* More prominent shadow on hover */
        z-index: 10 !important; /* Bring hovered image to front */
    }

/* Individual image positioning, sizing, and layering (adjusted for more space) */
#design-img-1 {
    width: 250px; /* Adjusted size */
    height: 180px;
    top: 20px;
    left: 10px; /* Moved slightly right */
    z-index: 4;
    opacity: 0.95; /* Least transparent */
    transform: rotate(-5deg); /* Slight rotation */
}

#design-img-2 {
    width: 200px; /* Adjusted size */
    height: 150px;
    top: 60px; /* Moved down */
    left: 170px; /* Moved right */
    z-index: 3;
    opacity: 0.9;
    transform: rotate(8deg); /* Slight rotation */
}

#design-img-3 {
    width: 180px; /* Adjusted size */
    height: 130px;
    top: 130px; /* Moved down */
    left: 40px; /* Moved right */
    z-index: 2;
    opacity: 0.85;
    transform: rotate(-12deg); /* Slight rotation */
}

#design-img-4 {
    width: 160px; /* Adjusted size */
    height: 120px;
    top: 180px; /* Moved down */
    right: 20px; /* Moved left */
    z-index: 1;
    opacity: 0.8; /* Most transparent */
    transform: rotate(5deg); /* Slight rotation */
}


/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        width: 95%;
        min-height: auto;
    }

    .login-form-section,
    .login-info-section {
        flex: none;
        width: 100%;
        padding: 30px;
    }

    .login-info-section {
        border-radius: 0 0 15px 15px;
    }

    .login-form-section {
        border-radius: 15px 15px 0 0;
    }

    .login-info-section h1 {
        font-size: 2em;
    }

    /* Adjustments for new design profiles container on smaller screens */
    .design-profiles-container {
        margin-top: 30px;
        width: 300px; /* Smaller fixed width for mobile */
        height: 250px; /* Smaller fixed height for mobile */
    }

    /* Adjust individual image positioning/sizing for mobile */
    #design-img-1 {
        width: 200px;
        height: 140px;
        top: 10px;
        left: 5%;
    }

    #design-img-2 {
        width: 150px;
        height: 110px;
        top: 40px;
        left: 140px;
        transform: rotate(5deg);
    }

    #design-img-3 {
        width: 130px;
        height: 90px;
        top: 90px;
        left: 20px;
        transform: rotate(-8deg);
    }

    #design-img-4 {
        width: 110px;
        height: 80px;
        top: 150px;
        right: 10px;
        transform: rotate(3deg);
    }
}
