﻿body {
    background: #f8f9fa;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-glass {
    display: flex;
    flex-direction: row;
    background: #ffffffcc;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    max-width: 960px;
    width: 100%;
    overflow: hidden;
}

.left-panel {
    background: linear-gradient(135deg, #4eb395, #2489a7);
    color: white;
    width: 40%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .left-panel img {
        width: 100%;
        max-height: 200px;
        object-fit: contain;
        margin-bottom: 1rem;
    }

.right-panel {
    flex: 1;
    padding: 2.5rem;
    background: #fff;
}

/* Animated Floating Labels */
.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-1.5rem);
    opacity: 1;
}

.form-floating label {
    transition: all 0.2s ease-in-out;
    opacity: 0.6;
}

.form-floating input {
    background: rgba(0, 0, 0, 0.03);
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4eb395, #2489a7);
    border: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #2489a7, #4eb395);
    }
    .dark-mode .form-check-input:checked {
	background-color: #3ddbb7 !important;
}
.dark-mode {
    background-color: #595959 !important;
    color: #f1f1f1 !important;
}

    .dark-mode .text-muted {
        color: #fff !important;
    }


    .dark-mode .right-panel {
        background-color: #1e1e1e !important;
    }

    .dark-mode input,
    .dark-mode label,
    .dark-mode .form-check-label,
    .dark-mode .fas.fa-eye {
        color: #fff !important;
    }



        .dark-mode input[type="text"]:focus,
        .dark-mode input[type="password"]:focus,
        .dark-mode input[type="date"]:focus {
            background-color: #1e1e1e;
            -webkit-box-shadow: 0 0 0px 1000px #1e1e1e inset;
            -webkit-text-fill-color: #fff !important;
            color: #fff;
        }

        .dark-mode input:-webkit-autofill {
            background-color: #1e1e1e !important;
            -webkit-box-shadow: 0 0 0px 1000px #1e1e1e inset;
            -webkit-text-fill-color: #fff !important;
            color: #fff;
        }

/*.dark-mode .form-floating label {
        color: #1e1e1e;
    }

    .dark-mode .form-floating input:focus ~ label,
    .dark-mode .form-floating input:not(:placeholder-shown) ~ label {
        color: #1e1e1e;
        opacity: 1;
    }*/


input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus {
    background-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    -webkit-text-fill-color: #000 !important;
    color: #000;
}

input:-webkit-autofill {
    background-color: #fff;
    color: #000;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset;
    -webkit-text-fill-color: #000 !important;
}



.form-switch .form-check-input {
    cursor: pointer;
}

@media (max-width: 768px) {
    .card-glass {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        padding: 1rem;
        text-align: center;
    }

    .right-panel {
        padding: 2rem;
    }
}
