﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #000000 !important;
}

body {
    /* Reset default styles */
    height: 100vh;
    width: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, #007aff 0%, #d0e6eb 120%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

    body ::-webkit-input-placeholder {
        color: #a1a1aa;
    }

    /* Login container */
.login_right {
    position: relative;
    padding: 32px 24px;    
    background: #efffff;
    border-radius: 8px;
    margin: 0 16px;
    animation: fadeIn 0.5s ease forwards;
}
@media screen and (min-width: 420px) {
.login_right {
        width: 420px;

    }
}
.login_main {
    background: #efffff;
    padding-block: 52px;
    display: flex;
    border: 2px solid #d4d4d8;
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.left_image {
    width: 600px;
    height: 600px;
    border-radius: 15px;
}
@media screen and (max-width: 1000px) {
    .login_main img {
        display: none;
    }
}

    /* Brand section */
    body .brand {
        text-align: center;
        margin-bottom: 28px;
    }

        body .brand .brand-title {
            font-size: 45px;
            color: #71717a;
            font-weight: 300;
        }

        body .brand .brand-second {
            color: #008aad;
            font-size: 45px;
            font-weight: 600;
        }

        body .brand .slogan {
            font-size: 13px;
            color: #71717a;
            margin-top: 4px;
            text-align: center;
        }

    /* Login title */
    body .login_title {
        color: #18181b;
        text-align: left;
        font-size: 16px;
        margin: 24px 0 20px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }

    /* Login fields */
    body .login_fields {
        position: relative;
        width: 100%;
    }

        body .login_fields .icon {
            position: absolute;
            z-index: 1;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            opacity: 0.6;
        }

    body .login_fields__user,
    body .login_fields__password {
        position: relative;
        width: 100%;
    }

    body .login_fields input[type=email],
    body .login_fields #Utilisateur_MDP {
        color: #18181b;
        width: 100%;
        background: #f4f4f5;
        padding: 14px 14px 14px 40px;
        border-radius: 6px;
        border: 1px solid #d4d4d8;
        font-family: "Inter", sans-serif;
        font-size: 14px;
        transition: all 0.2s ease;
    }

        body .login_fields input[type=email]:focus,
        body .login_fields #Utilisateur_MDP:focus {
            border-color: #18181b;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
        }

    /* Validation styling */
    body .login .validation {
        color: #dc2626;
        font-size: 12px;
        padding-left: 10px;
        margin-top: 6px;
    }

    /* Submit section */
    body .login_fields__submit {
        margin-top: 28px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }

        body .login_fields__submit input {
            width: 100%;
            border-radius: 15px;
            background: #008aad;
            padding: 12px 24px;
            border: none;
            color: #ffffff;
            font-weight: 500;
            font-size: 14px;
            letter-spacing: 0.3px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

            body .login_fields__submit input:hover {
                background: #0f728b;
            }

            body .login_fields__submit input:focus {
                outline: none;
                box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.3);
            }

        body .login_fields__submit .forgot {
            margin-left: 14px;
        }

            body .login_fields__submit .forgot a {
                color: #71717a;
                font-size: 13px;
                text-decoration: none;
                transition: color 0.2s ease;
            }

                body .login_fields__submit .forgot a:hover {
                    color: #18181b;
                }

    /* Error message */
    body .errormsg {
        color: #dc2626;
        font-size: 13px;
        padding-top: 16px;
        text-align: center;
        width: 100%;
    }

    /* Password field styling */
    .password-container {
        position: relative;
        width: 100%;
    }

        .password-container input[type="password"],
        .password-container input[type="text"] {
            width: 100%;
            box-sizing: border-box;
        }

    .fa-eye {
        position: absolute;
        right: 12px;
        cursor: pointer;
        color: #71717a;
        opacity: 0.7;
        transition: color 0.2s ease;
    }

        .fa-eye:hover {
            color: #18181b;
        }

    /* Toast styling */
    .toast {
        background: #ffffff;
        border: 1px solid #e4e4e7;
        border-radius: 6px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    }

    .toast-header {
        border-bottom: 1px solid #e4e4e7;
        padding: 12px 16px;
        color: #18181b;
    }

        .toast-header .btn-close {
            filter: invert(0.2) brightness(1);
        }

            .toast-header .btn-close:focus {
                box-shadow: none;
            }

    .toast-body {
        padding: 16px;
        color: #3f3f46;
    }

    /* Disclaimer */
    body .disclaimer {
        text-align: center;
        margin-top: 32px;
    }

        body .disclaimer p {
            color: #a1a1aa;
            font-size: 12px;
        }

    /* Responsive adjustments */
    @media (max-width: 480px) {
        body .login {
            padding: 24px 16px;
            margin: 0 12px;
        }

        body .brand .brand-title,
        body .brand .brand-second {
            font-size: 24px;
        }

        body .login_fields__submit {
            flex-direction: column;
            align-items: flex-start;
        }

            body .login_fields__submit .forgot {
                margin-left: 0;
                margin-top: 14px;
            }

        body .login_fields input[type=email],
        body .login_fields #Utilisateur_MDP {
            padding: 12px 12px 12px 38px;
        }
    }

    /* For very small screens */
    @media (max-width: 320px) {
        body .login {
            padding: 20px 16px;
        }

        body .brand .brand-title,
        body .brand .brand-second {
            font-size: 22px;
        }
    }

    /* Animation */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
