* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html,
body {
    height: 100%;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #f7f7f7;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.login-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 1s ease-in-out;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
}

.login-quote {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.login-quote-author {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.login-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    position: relative;
}

.italian-flag {
    height: 6px;
    width: 60px;
    display: flex;
    margin-bottom: 20px;
}

.flag-green {
    background-color: #009246;
    flex: 1;
}

.flag-white {
    background-color: #f7f7f7;
    flex: 1;
}

.flag-red {
    background-color: #ce2b37;
    flex: 1;
}

.login-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}

.login-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #009246;
    outline: none;
}

.btn {
    display: inline-block;
    background-color: #009246;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    text-align: center;
}

.btn:hover {
    background-color: #007a3a;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.forgot-password:hover {
    color: #009246;
}

.separator {
    display: block;
    text-align: center;
    margin: 25px 0 15px;
    color: #999;
    font-size: 12px;
    position: relative;
}

.separator::before,
.separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #e0e0e0;
}

.separator::before {
    left: 0;
}

.separator::after {
    right: 0;
}

.new-vendor-btn {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid #009246;
    border-radius: 6px;
    color: #009246;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.new-vendor-btn:hover {
    background-color: rgba(0, 146, 70, 0.1);
    color: #007a3a;
}

.language-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.language-button {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.language-button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

.language-button.active {
    opacity: 1;
    box-shadow: 0 0 0 2px #009246;
}

.language-button img {
    display: block;
    border-radius: 2px;
}

.background-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    z-index: 0;
}

.circle-green {
    width: 350px;
    height: 350px;
    background-color: #009246;
    top: -150px;
    right: -100px;
}

.circle-red {
    width: 250px;
    height: 250px;
    background-color: #ce2b37;
    bottom: -100px;
    left: -100px;
}

.fade {
    opacity: 0;
}

@media (max-width: 992px) {
    .login-container {
        max-width: 800px;
    }

    .login-image {
        flex: 0.8;
    }

    .login-form-container {
        flex: 1.2;
    }

    .login-quote {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 500px;
        margin: 20px;
        height: auto;
    }

    .login-image {
        height: 200px;
    }

    .login-overlay {
        padding: 30px;
    }

    .login-quote {
        font-size: 1.8rem;
    }

    .login-form-container {
        padding: 30px;
    }

    .separator {
        display: none;
    }

    .new-vendor-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 15px;
        max-width: 100%;
        box-shadow: none;
    }

    .login-image {
        display: none;
    }

    .login-form-container {
        padding: 25px 20px;
    }

    .login-logo {
        font-size: 1.8rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        padding: 10px;
    }

    .btn {
        padding: 12px;
    }

    .background-circle {
        display: none;
    }

    .language-switcher {
        top: 10px;
        right: 10px;
    }

    .separator {
        margin: 20px 0 10px;
    }

    .new-vendor-btn {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-height: 600px) {
    .login-container {
        margin: 0;
        height: 100%;
        max-height: none;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .login-logo {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }

    .login-subtitle {
        margin-bottom: 10px;
    }

    .italian-flag {
        margin-bottom: 10px;
    }
}