/* General body styling */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5; /* Light gray background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; /* Prevents scrollbars from rotated images */
    position: relative; /* Needed for z-index stacking */
}

/* --- Background Collage Styles --- */

.background-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Sits behind the login container */
}

/* General style for all background images */
.bg-img {
    position: absolute; /* All images are positioned absolutely */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0.4; /* Faded out */
    transition: all 0.3s ease-in-out;
}

.bg-img:hover {
    opacity: 0.9;
    transform: scale(1.05) !important; /* Make it pop */
    z-index: 5;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Specific, reliable positioning for each image */
.bg-img-1 {
    width: 280px; /* Adjusted size for better visibility */
    transform: rotate(-15deg);
    top: 10%; /* Closer to top-left */
    left: 8%;
}

.bg-img-2 {
    width: 320px; /* Adjusted size */
    transform: rotate(10deg);
    top: 15%; /* Closer to top-right */
    right: 10%;
}

.bg-img-3 {
    width: 300px; /* Adjusted size */
    transform: rotate(5deg);
    bottom: 12%; /* Closer to bottom-left */
    left: 15%;
}

.bg-img-4 {
    width: 290px; /* Adjusted size */
    transform: rotate(-8deg); /* Slightly different rotation */
    bottom: 8%; /* Closer to bottom-right */
    right: 8%;
}


/* --- Login Container Styles --- */

.login-container {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    
    /* Stacking and hover effect */
    position: relative;
    z-index: 10; /* Sits on top of the collage */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px); /* Lifts the card */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.login-form h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #111;
    text-align: left;
}

.login-form .subheading {
    font-size: 1rem;
    color: #666;
    margin: 0 0 2rem;
    text-align: left;
}

/* Input fields */
.input-group {
    margin-bottom: 1.25rem;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: #4285F4;
}

/* "or" divider */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    color: #aaa;
    font-size: 0.9rem;
    position: relative;
}

.divider span {
    background: #fff;
    padding: 0 0.5rem;
    position: relative;
    z-index: 1;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #ddd;
    z-index: 0;
}

/* Button container */
.button-group {
    display: flex;
    gap: 1rem;
}

/* General button styling */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

/* Primary "Login" button */
.btn-login {
    background-color: #0d6efd;
    color: white;
}

.btn-login:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px); /* Lifts the button */
}

/* Secondary "Google" button */
.btn-google {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn-google:hover {
    background-color: #e9ecef;
    transform: translateY(-2px); /* Lifts the button */
}