﻿body {
    background-color: #f8f9fa;
}

.login-container {
    min-height: calc(100vh - 70px - 120px); /* Adjust for navbar and footer */
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.left-column {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border-radius: 10px 0 0 10px;
    position: relative;
    overflow: hidden;
}

    .left-column::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('https://source.unsplash.com/random/800x600/?mobile,repair') no-repeat center center;
        background-size: cover;
        opacity: 0.3;
        z-index: 0;
    }

.left-column-content {
    position: relative;
    z-index: 1;
}

.right-column {
    background: white;
    padding: 3rem;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

    .form-floating .form-control {
        padding-left: 3rem; /* Increased padding for icon space */
        padding-right: 2.5rem; /* Space for eye icon in password field */
        height: calc(2.5rem + 2px); /* Consistent height */
    }

    .form-floating .input-icon {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        z-index: 2;
    }

    .form-floating label {
        padding-left: 3rem; /* Align label to start after icon */
        color: #6c757d;
    }

    .form-floating .toggle-password {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        cursor: pointer;
        z-index: 2;
    }

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

.forgot-password {
    font-size: 0.9rem;
    color: #0d6efd;
}

    .forgot-password:hover {
        color: #0a58ca;
        text-decoration: underline;
    }

@media (max-width: 767px) {
    .left-column {
        border-radius: 10px 10px 0 0;
        min-height: 200px;
    }

    .right-column {
        border-radius: 0 0 10px 10px;
    }
}
