/* --- Global & Reset --- */
:root {
    --primary-blue: #4a6ed9; /* Main action color */
    --font-color-light: #f0f2f7;
    --input-bg: #cbd3db;
    --text-input-color: #4a4a4a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Using Poppins from the HTML link for better typography */
    font-family: 'Poppins', sans-serif; 
}

body, html {
    height: 100%;
    /* Deep blue/indigo gradient background */
    background: radial-gradient(circle at center, #073b5c 0%, #001e33 100%);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--font-color-light);
}

/* --- Main Container: Glass-Morphic Card --- */
.container {
    width: 850px;
    max-width: 90vw;
    min-height: 500px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    /* Soft, deep shadow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    /* Subtle glass effect on the main container */
    backdrop-filter: saturate(180%) blur(10px); 
    background: rgba(34, 55, 87, 0.8); /* Semi-transparent dark blue base */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Left Side - Login Form Section --- */
.login-section {
    flex: 1;
    padding: 50px;
    /* Stronger blue gradient for the login card itself */
    background: linear-gradient(135deg, #3b6bb6 0%, #2c547f 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-section h1 {
    font-size: 2.5rem;
    margin-bottom: 35px;
    font-weight: 700;
    /* Neon glow effect */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5); 
}

form {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Input Fields & Groups --- */
.input-group {
    background-color: var(--input-bg);
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-input-color);
    font-size: 0.9rem;
    /* Inner shadow for "pressed-in" look */
    box-shadow: inset 1px 1px 4px rgba(255,255,255,0.7),
        inset -1px -1px 4px rgba(0,0,0,0.1);
}

/* Icon style */
.input-group svg {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    fill: #7a7a7a;
    flex-shrink: 0;
}

input[type="text"],
input[type="password"] {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 1rem;
    color: var(--text-input-color);
    font-weight: 500;
}

input::placeholder {
    color: #7a7a7a;
    font-weight: 500;
}

.forgot-link {
    text-align: right;
    font-size: 0.8rem;
    color: #aac0f7;
    margin-top: -10px;
    margin-bottom: 15px;
    cursor: pointer;
    text-decoration: none; /* Removed default underline */
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #d3dbfc;
    text-decoration: underline; /* Add underline on hover */
}

/* --- Primary Log In Button (login-btn) --- */
button.login-btn {
    background: linear-gradient(145deg, var(--primary-blue), #3459b3);
    color: white;
    border: none;
    padding: 12px 0;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(38, 81, 194, 0.7); /* Stronger shadow */
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
button.login-btn:hover {
    background: linear-gradient(145deg, #3a5acb, #2a458f);
    box-shadow: 0 8px 20px rgba(50, 100, 250, 0.9);
    transform: translateY(-2px);
}
button.login-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(38, 81, 194, 0.7);
}

.create-account {
    text-align: center;
    margin: 10px 0 15px;
    font-size: 0.85rem;
    color: #94a4cf;
}
.create-account a {
    color: #aac0f7;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}
.create-account a:hover {
    color: #d3dbfc;
}

/* --- Social Logins --- */
.socials {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    border: none;
}

.social-btn svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
}

.social-btn.facebook {
    background: #3b5998;
    box-shadow: 0 4px 10px rgba(59, 89, 152, 0.5);
}
.social-btn.facebook:hover {
    background: #2d4373;
    box-shadow: 0 6px 15px rgba(59, 89, 152, 0.8);
}

/* Adjusted Google button for the dark theme */
.social-btn.google {
    background: transparent;
    border: 2px solid white; /* Outline style */
    color: white;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}
.social-btn.google svg path {
    fill: white; /* Ensure the Google icon is visible */
}
.social-btn.google:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

/* --- Messages (Error/Success) - Dark/Neon Theme --- */
.message {
    padding: 12px 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid;
}

.message.success {
    background-color: rgba(3, 169, 244, 0.1); /* Light blue background */
    color: #8cceff; /* Light blue text */
    border-color: #03a9f4;
    box-shadow: 0 0 10px rgba(3, 169, 244, 0.5); /* Neon glow */
}

.message.error {
    background-color: rgba(255, 87, 34, 0.1); /* Orange/Red background */
    color: #ffc2b3; /* Light red text */
    border-color: #ff5722;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.5); /* Neon glow */
}

/* --- Right Side - Image Section --- */
.image-section {
    flex: 1;
    background: linear-gradient(180deg, #8ca8e4 0%, #bcc6f2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    /* Soft internal light for the water section */
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.4); 
}

.water-bottle {
    background-color: #334a7e;
    border-radius: 50%;
    width: 280px;
    height: 340px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.6); /* Enhanced inner reflection */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    filter: drop-shadow(5px 5px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.8s ease-in-out;
    animation: bottle-tilt 8s ease-in-out infinite alternate; /* Added subtle animation */
}

.water-bottle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes bottle-tilt {
    0% { transform: rotate(1deg) translateY(0px); }
    100% { transform: rotate(-1deg) translateY(-5px); }
}


/* --- Responsiveness --- */
@media (max-width: 850px) {
    .container {
        flex-direction: column;
        min-height: auto;
        width: 95%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    }
    
    /* Remove rounded corners from sections so the container handles it */
    .login-section {
        border-radius: 0;
        padding: 40px 30px;
    }
    
    /* Hide the image section on small screens to prioritize the form */
    .image-section {
        display: none; 
    }

    .socials {
        flex-direction: column;
        gap: 10px;
    }

    .social-btn {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 450px) {
    .login-section h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    .login-section {
        padding: 30px 20px;
    }
    form {
        max-width: 100%;
    }
}