﻿/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Background */
body {
    background: var(--color-green-300);
}

.login-container {
    display: flex;
    height: 100vh;
}

/* Image wrapper styles */
.img-wrapper {
    width: 30%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-sidenav);
    box-shadow: var(--shadow-lg);
}

.login-img {
    height: 100%;
    object-position: center;
    object-fit: cover;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

/* Logo */
.login-logo {
    width: 100%;
    max-width:250px;
    margin:auto;
}

/* Wrapper for full login layout */
.login-wrapper {
    display: flex; 
    flex-direction: column;
    gap:0.5rem;
    width: 70%;
    max-width: 500px;
    margin: auto;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    height: fit-content;
}

.login-header, .login-form {
    display: flex;
    gap:0.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-block:0.5rem;
}

    .login-form form, .login-form .button {
        width: 100%;
    }



    /* Hide the left image section on mobile */
    @media (max-width: 768px) {
        .img-wrapper {
        display: none;
    }

    .login-wrapper {
        width: 100%;
        margin: 1rem;
    }

    .container {
        height: auto;
        min-height: 100vh;
        padding: 1rem;
    }
}
